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

78 lines
1.2 KiB
Rust
Raw Normal View History

// rustfmt-brace_style: PreferSameLine
2016-04-07 14:24:30 -05:00
// 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-06-11 23:01:41 -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,
2017-06-11 23:01:41 -05:00
) where
T: UUUUUUUUUUU, {
2016-04-07 14:24:30 -05:00
bar();
}
fn foo(a: Aaaaaaaaaaaaaa, b: Bbbbbbbbbbbbbb) -> String
2017-06-11 23:01:41 -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-06-11 23:01:41 -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-06-11 23:01:41 -05:00
where
Foo: foooo,
Bar: barrr, {
2016-04-07 14:24:30 -05:00
}
}