2017-11-04 08:45:47 -05:00
|
|
|
// rustfmt-fn_args_indent: Block
|
2015-09-01 16:41:08 -05:00
|
|
|
// rustfmt-fn_brace_style: PreferSameLine
|
|
|
|
// Test different indents.
|
|
|
|
|
2017-03-19 17:35:53 -05:00
|
|
|
fn foo(a: Aaaaaaaaaaaaaa, b: Bbbbbbbbbbbbbb) {
|
2015-09-01 16:41:08 -05:00
|
|
|
foo();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn bar(
|
|
|
|
a: Aaaaaaaaaaaaaa,
|
|
|
|
b: Bbbbbbbbbbbbbb,
|
|
|
|
c: Cccccccccccccccccc,
|
|
|
|
d: Dddddddddddddddd,
|
2017-03-08 19:47:29 -06:00
|
|
|
e: Eeeeeeeeeeeeeee,
|
2015-09-01 16:41:08 -05:00
|
|
|
) {
|
|
|
|
bar();
|
|
|
|
}
|
|
|
|
|
2017-03-19 17:35:53 -05:00
|
|
|
fn foo(a: Aaaaaaaaaaaaaa, b: Bbbbbbbbbbbbbb) -> String {
|
2015-09-01 16:41:08 -05:00
|
|
|
foo();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn bar(
|
|
|
|
a: Aaaaaaaaaaaaaa,
|
|
|
|
b: Bbbbbbbbbbbbbb,
|
|
|
|
c: Cccccccccccccccccc,
|
|
|
|
d: Dddddddddddddddd,
|
2017-03-08 19:47:29 -06:00
|
|
|
e: Eeeeeeeeeeeeeee,
|
2015-09-01 16:41:08 -05:00
|
|
|
) -> String {
|
|
|
|
bar();
|
|
|
|
}
|
|
|
|
|
2017-03-19 17:35:53 -05:00
|
|
|
fn foo(a: Aaaaaaaaaaaaaa, b: Bbbbbbbbbbbbbb)
|
2017-06-11 23:01:41 -05:00
|
|
|
where
|
|
|
|
T: UUUUUUUUUUU, {
|
2015-09-01 16:41:08 -05:00
|
|
|
foo();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn bar(
|
|
|
|
a: Aaaaaaaaaaaaaa,
|
|
|
|
b: Bbbbbbbbbbbbbb,
|
|
|
|
c: Cccccccccccccccccc,
|
|
|
|
d: Dddddddddddddddd,
|
2017-03-08 19:47:29 -06:00
|
|
|
e: Eeeeeeeeeeeeeee,
|
2017-06-11 23:01:41 -05:00
|
|
|
) where
|
|
|
|
T: UUUUUUUUUUU, {
|
2015-09-01 16:41:08 -05:00
|
|
|
bar();
|
|
|
|
}
|
|
|
|
|
2017-03-19 17:35:53 -05:00
|
|
|
fn foo(a: Aaaaaaaaaaaaaa, b: Bbbbbbbbbbbbbb) -> String
|
2017-06-11 23:01:41 -05:00
|
|
|
where
|
|
|
|
T: UUUUUUUUUUU, {
|
2015-09-01 16:41:08 -05:00
|
|
|
foo();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn bar(
|
|
|
|
a: Aaaaaaaaaaaaaa,
|
|
|
|
b: Bbbbbbbbbbbbbb,
|
|
|
|
c: Cccccccccccccccccc,
|
|
|
|
d: Dddddddddddddddd,
|
2017-03-08 19:47:29 -06:00
|
|
|
e: Eeeeeeeeeeeeeee,
|
2015-09-01 16:41:08 -05:00
|
|
|
) -> String
|
2017-06-11 23:01:41 -05:00
|
|
|
where
|
|
|
|
T: UUUUUUUUUUU, {
|
2015-09-01 16:41:08 -05:00
|
|
|
bar();
|
|
|
|
}
|
2016-04-01 16:59:35 -05:00
|
|
|
|
|
|
|
trait Test {
|
2017-03-19 17:35:53 -05:00
|
|
|
fn foo(a: u8) {}
|
2016-04-01 16:59:35 -05:00
|
|
|
|
2017-03-19 17:35:53 -05:00
|
|
|
fn bar(a: u8) -> String {}
|
2016-04-01 16:59:35 -05:00
|
|
|
}
|