rust/tests/target/fn-custom-8.rs

74 lines
1.2 KiB
Rust
Raw Normal View History

2016-04-07 14:24:30 -05:00
// rustfmt-fn_args_layout: Block
// rustfmt-fn_brace_style: PreferSameLine
// Test different indents.
fn foo(a: Aaaaaaaaaaaaaa, b: Bbbbbbbbbbbbbb) {
foo();
}
fn bar(
a: Aaaaaaaaaaaaaa,
b: Bbbbbbbbbbbbbb,
c: Cccccccccccccccccc,
d: Dddddddddddddddd,
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,
e: Eeeeeeeeeeeeeee,
2016-04-07 14:24:30 -05:00
) -> String {
bar();
}
fn foo(a: Aaaaaaaaaaaaaa, b: Bbbbbbbbbbbbbb)
2017-03-19 17:07:33 -05:00
where T: UUUUUUUUUUU {
2016-04-07 14:24:30 -05:00
foo();
}
fn bar(
a: Aaaaaaaaaaaaaa,
b: Bbbbbbbbbbbbbb,
c: Cccccccccccccccccc,
d: Dddddddddddddddd,
e: Eeeeeeeeeeeeeee,
2016-04-07 14:24:30 -05:00
) where T: UUUUUUUUUUU {
bar();
}
fn foo(a: Aaaaaaaaaaaaaa, b: Bbbbbbbbbbbbbb) -> String
2017-03-19 17:07:33 -05:00
where T: UUUUUUUUUUU {
2016-04-07 14:24:30 -05:00
foo();
}
fn bar(
a: Aaaaaaaaaaaaaa,
b: Bbbbbbbbbbbbbb,
c: Cccccccccccccccccc,
d: Dddddddddddddddd,
e: Eeeeeeeeeeeeeee,
2016-04-07 14:24:30 -05:00
) -> String
2017-03-19 17:07:33 -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-03-19 17:07:33 -05:00
where Foo: foooo,
Bar: barrr {
2016-04-07 14:24:30 -05:00
}
}