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

69 lines
1.1 KiB
Rust
Raw Normal View History

2017-03-19 17:35:53 -05:00
// rustfmt-fn_args_layout: Block
// rustfmt-fn_brace_style: PreferSameLine
// Test different indents.
2017-03-19 17:35:53 -05:00
fn foo(a: Aaaaaaaaaaaaaa, b: Bbbbbbbbbbbbbb) {
foo();
}
fn bar(
a: Aaaaaaaaaaaaaa,
b: Bbbbbbbbbbbbbb,
c: Cccccccccccccccccc,
d: Dddddddddddddddd,
e: Eeeeeeeeeeeeeee,
) {
bar();
}
2017-03-19 17:35:53 -05:00
fn foo(a: Aaaaaaaaaaaaaa, b: Bbbbbbbbbbbbbb) -> String {
foo();
}
fn bar(
a: Aaaaaaaaaaaaaa,
b: Bbbbbbbbbbbbbb,
c: Cccccccccccccccccc,
d: Dddddddddddddddd,
e: Eeeeeeeeeeeeeee,
) -> String {
bar();
}
2017-03-19 17:35:53 -05:00
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();
}
2017-03-19 17:35:53 -05:00
fn foo(a: Aaaaaaaaaaaaaa, b: Bbbbbbbbbbbbbb) -> String
2017-03-19 17:07:33 -05:00
where T: UUUUUUUUUUU {
foo();
}
fn bar(
a: Aaaaaaaaaaaaaa,
b: Bbbbbbbbbbbbbb,
c: Cccccccccccccccccc,
d: Dddddddddddddddd,
e: Eeeeeeeeeeeeeee,
) -> String
2017-03-19 17:07:33 -05:00
where T: UUUUUUUUUUU {
bar();
}
trait Test {
2017-03-19 17:35:53 -05:00
fn foo(a: u8) {}
2017-03-19 17:35:53 -05:00
fn bar(a: u8) -> String {}
}