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