2016-04-07 14:24:30 -05:00
|
|
|
// rustfmt-fn_args_layout: BlockAlways
|
2015-09-01 16:41:08 -05:00
|
|
|
// rustfmt-where_indent: Inherit
|
|
|
|
// rustfmt-fn_brace_style: PreferSameLine
|
|
|
|
// Test different indents.
|
|
|
|
|
|
|
|
fn foo(
|
2017-03-08 19:47:29 -06:00
|
|
|
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();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn foo(
|
2017-03-08 19:47:29 -06:00
|
|
|
a: Aaaaaaaaaaaaaa, b: Bbbbbbbbbbbbbb,
|
2015-09-01 16:41:08 -05:00
|
|
|
) -> String {
|
|
|
|
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();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn foo(
|
2017-03-08 19:47:29 -06:00
|
|
|
a: Aaaaaaaaaaaaaa, b: Bbbbbbbbbbbbbb,
|
2015-09-01 16:41:08 -05:00
|
|
|
) where T: UUUUUUUUUUU {
|
|
|
|
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
|
|
|
) where T: UUUUUUUUUUU {
|
|
|
|
bar();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn foo(
|
2017-03-08 19:47:29 -06:00
|
|
|
a: Aaaaaaaaaaaaaa, b: Bbbbbbbbbbbbbb,
|
2015-09-01 16:41:08 -05:00
|
|
|
) -> String
|
|
|
|
where T: UUUUUUUUUUU {
|
|
|
|
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
|
|
|
|
where T: UUUUUUUUUUU {
|
|
|
|
bar();
|
|
|
|
}
|
2016-04-01 16:59:35 -05:00
|
|
|
|
|
|
|
trait Test {
|
|
|
|
fn foo(
|
2017-03-08 19:47:29 -06:00
|
|
|
a: u8,
|
2016-04-01 16:59:35 -05:00
|
|
|
) {
|
|
|
|
}
|
|
|
|
|
|
|
|
fn bar(
|
2017-03-08 19:47:29 -06:00
|
|
|
a: u8,
|
2016-04-01 16:59:35 -05:00
|
|
|
) -> String {
|
|
|
|
}
|
|
|
|
}
|