2017-03-20 11:35:53 +13:00
|
|
|
// rustfmt-fn_args_layout: Block
|
2015-09-02 09:41:08 +12:00
|
|
|
// rustfmt-fn_brace_style: PreferSameLine
|
|
|
|
// Test different indents.
|
|
|
|
|
2017-03-20 11:35:53 +13:00
|
|
|
fn foo(a: Aaaaaaaaaaaaaa, b: Bbbbbbbbbbbbbb) {
|
2015-09-02 09:41:08 +12:00
|
|
|
foo();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn bar(
|
|
|
|
a: Aaaaaaaaaaaaaa,
|
|
|
|
b: Bbbbbbbbbbbbbb,
|
|
|
|
c: Cccccccccccccccccc,
|
|
|
|
d: Dddddddddddddddd,
|
2017-03-09 14:47:29 +13:00
|
|
|
e: Eeeeeeeeeeeeeee,
|
2015-09-02 09:41:08 +12:00
|
|
|
) {
|
|
|
|
bar();
|
|
|
|
}
|
|
|
|
|
2017-03-20 11:35:53 +13:00
|
|
|
fn foo(a: Aaaaaaaaaaaaaa, b: Bbbbbbbbbbbbbb) -> String {
|
2015-09-02 09:41:08 +12:00
|
|
|
foo();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn bar(
|
|
|
|
a: Aaaaaaaaaaaaaa,
|
|
|
|
b: Bbbbbbbbbbbbbb,
|
|
|
|
c: Cccccccccccccccccc,
|
|
|
|
d: Dddddddddddddddd,
|
2017-03-09 14:47:29 +13:00
|
|
|
e: Eeeeeeeeeeeeeee,
|
2015-09-02 09:41:08 +12:00
|
|
|
) -> String {
|
|
|
|
bar();
|
|
|
|
}
|
|
|
|
|
2017-03-20 11:35:53 +13:00
|
|
|
fn foo(a: Aaaaaaaaaaaaaa, b: Bbbbbbbbbbbbbb)
|
2017-06-12 16:01:41 +12:00
|
|
|
where
|
|
|
|
T: UUUUUUUUUUU, {
|
2015-09-02 09:41:08 +12: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, {
|
2015-09-02 09:41:08 +12:00
|
|
|
bar();
|
|
|
|
}
|
|
|
|
|
2017-03-20 11:35:53 +13:00
|
|
|
fn foo(a: Aaaaaaaaaaaaaa, b: Bbbbbbbbbbbbbb) -> String
|
2017-06-12 16:01:41 +12:00
|
|
|
where
|
|
|
|
T: UUUUUUUUUUU, {
|
2015-09-02 09:41:08 +12:00
|
|
|
foo();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn bar(
|
|
|
|
a: Aaaaaaaaaaaaaa,
|
|
|
|
b: Bbbbbbbbbbbbbb,
|
|
|
|
c: Cccccccccccccccccc,
|
|
|
|
d: Dddddddddddddddd,
|
2017-03-09 14:47:29 +13:00
|
|
|
e: Eeeeeeeeeeeeeee,
|
2015-09-02 09:41:08 +12:00
|
|
|
) -> String
|
2017-06-12 16:01:41 +12:00
|
|
|
where
|
|
|
|
T: UUUUUUUUUUU, {
|
2015-09-02 09:41:08 +12:00
|
|
|
bar();
|
|
|
|
}
|
2016-04-01 22:59:35 +01:00
|
|
|
|
|
|
|
trait Test {
|
2017-03-20 11:35:53 +13:00
|
|
|
fn foo(a: u8) {}
|
2016-04-01 22:59:35 +01:00
|
|
|
|
2017-03-20 11:35:53 +13:00
|
|
|
fn bar(a: u8) -> String {}
|
2016-04-01 22:59:35 +01:00
|
|
|
}
|