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