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

73 lines
1.1 KiB
Rust
Raw Normal View History

// rustfmt-fn_args_indent: 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)
2017-06-11 23:01:41 -05:00
where
T: UUUUUUUUUUU, {
foo();
}
fn bar(
a: Aaaaaaaaaaaaaa,
b: Bbbbbbbbbbbbbb,
c: Cccccccccccccccccc,
d: Dddddddddddddddd,
e: Eeeeeeeeeeeeeee,
2017-06-11 23:01:41 -05:00
) where
T: UUUUUUUUUUU, {
bar();
}
2017-03-19 17:35:53 -05:00
fn foo(a: Aaaaaaaaaaaaaa, b: Bbbbbbbbbbbbbb) -> String
2017-06-11 23:01:41 -05:00
where
T: UUUUUUUUUUU, {
foo();
}
fn bar(
a: Aaaaaaaaaaaaaa,
b: Bbbbbbbbbbbbbb,
c: Cccccccccccccccccc,
d: Dddddddddddddddd,
e: Eeeeeeeeeeeeeee,
) -> String
2017-06-11 23:01:41 -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 {}
}