2017-11-13 01:09:59 -06:00
|
|
|
// rustfmt-indent_style: Block
|
2017-11-13 19:47:02 -06:00
|
|
|
// rustfmt-brace_style: PreferSameLine
|
2016-04-07 14:24:30 -05:00
|
|
|
// Test different indents.
|
|
|
|
|
|
|
|
fn foo(a: Aaaaaaaaaaaaaa, b: Bbbbbbbbbbbbbb) {
|
|
|
|
foo();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn bar(
|
|
|
|
a: Aaaaaaaaaaaaaa,
|
|
|
|
b: Bbbbbbbbbbbbbb,
|
|
|
|
c: Cccccccccccccccccc,
|
|
|
|
d: Dddddddddddddddd,
|
2017-03-08 19:47:29 -06:00
|
|
|
e: Eeeeeeeeeeeeeee,
|
2016-04-07 14:24:30 -05:00
|
|
|
) {
|
|
|
|
bar();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn foo(a: Aaaaaaaaaaaaaa, b: Bbbbbbbbbbbbbb) -> String {
|
|
|
|
foo();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn bar(
|
|
|
|
a: Aaaaaaaaaaaaaa,
|
|
|
|
b: Bbbbbbbbbbbbbb,
|
|
|
|
c: Cccccccccccccccccc,
|
|
|
|
d: Dddddddddddddddd,
|
2017-03-08 19:47:29 -06:00
|
|
|
e: Eeeeeeeeeeeeeee,
|
2016-04-07 14:24:30 -05:00
|
|
|
) -> String {
|
|
|
|
bar();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn foo(a: Aaaaaaaaaaaaaa, b: Bbbbbbbbbbbbbb)
|
2017-06-11 23:01:41 -05:00
|
|
|
where
|
|
|
|
T: UUUUUUUUUUU, {
|
2016-04-07 14:24:30 -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, {
|
2016-04-07 14:24:30 -05:00
|
|
|
bar();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn foo(a: Aaaaaaaaaaaaaa, b: Bbbbbbbbbbbbbb) -> String
|
2017-06-11 23:01:41 -05:00
|
|
|
where
|
|
|
|
T: UUUUUUUUUUU, {
|
2016-04-07 14:24:30 -05:00
|
|
|
foo();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn bar(
|
|
|
|
a: Aaaaaaaaaaaaaa,
|
|
|
|
b: Bbbbbbbbbbbbbb,
|
|
|
|
c: Cccccccccccccccccc,
|
|
|
|
d: Dddddddddddddddd,
|
2017-03-08 19:47:29 -06:00
|
|
|
e: Eeeeeeeeeeeeeee,
|
2016-04-07 14:24:30 -05:00
|
|
|
) -> String
|
2017-06-11 23:01:41 -05:00
|
|
|
where
|
|
|
|
T: UUUUUUUUUUU, {
|
2016-04-07 14:24:30 -05:00
|
|
|
bar();
|
|
|
|
}
|
|
|
|
|
|
|
|
trait Test {
|
|
|
|
fn foo(a: u8) {}
|
|
|
|
|
|
|
|
fn bar(a: u8) -> String {}
|
|
|
|
|
|
|
|
fn bar(a: u8) -> String
|
2017-06-11 23:01:41 -05:00
|
|
|
where
|
|
|
|
Foo: foooo,
|
|
|
|
Bar: barrr, {
|
2016-04-07 14:24:30 -05:00
|
|
|
}
|
|
|
|
}
|