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

75 lines
1.3 KiB
Rust
Raw Normal View History

// rustfmt-fn_args_layout: Block
// rustfmt-generics_indent: Block
// rustfmt-where_layout: HorizontalVertical
// Test different indents.
fn foo(
a: Aaaaaaaaaaaaaaa,
b: Bbbbbbbbbbbbbbbb,
c: Ccccccccccccccccc,
d: Ddddddddddddddddddddddddd,
e: Eeeeeeeeeeeeeeeeeee,
) {
foo();
}
fn bar<
2017-03-19 17:07:33 -05:00
'a: 'bbbbbbbbbbbbbbbbbbbbbbbbbbb,
TTTTTTTTTTTTT,
2017-06-10 04:24:23 -05:00
UUUUUUUUUUUUUUUUUUUU: WWWWWWWWWWWWWWWWWWWWWWWW,
>(
a: Aaaaaaaaaaaaaaa,
) {
bar();
}
fn qux()
2017-06-11 23:01:41 -05:00
where
X: TTTTTTTTTTTTTTTTTTTTTTTTTTTT,
X: TTTTTTTTTTTTTTTTTTTTTTTTTTTT,
{
baz();
}
fn qux()
2017-06-11 23:01:41 -05:00
where
X: TTTTTTTTTTTTTTTTTTTTTTTTTTTT,
X: TTTTTTTTTTTTTTTTTTTTTTTTTTTT,
X: TTTTTTTTTTTTTTTTTTTTTTTTTTTT,
X: TTTTTTTTTTTTTTTTTTTTTTTTTTTT,
{
baz();
}
impl Foo {
fn foo(
self,
a: Aaaaaaaaaaaaaaa,
b: Bbbbbbbbbbbbbbbb,
c: Ccccccccccccccccc,
d: Ddddddddddddddddddddddddd,
e: Eeeeeeeeeeeeeeeeeee,
) {
foo();
}
fn bar<
2017-03-19 17:07:33 -05:00
'a: 'bbbbbbbbbbbbbbbbbbbbbbbbbbb,
TTTTTTTTTTTTT,
2017-06-10 04:24:23 -05:00
UUUUUUUUUUUUUUUUUUUU: WWWWWWWWWWWWWWWWWWWWWWWW,
>(
a: Aaaaaaaaaaaaaaa,
) {
bar();
}
}
struct Foo<
2017-03-19 17:07:33 -05:00
TTTTTTTTTTTTTTTTTTTTTTTTTTTT,
UUUUUUUUUUUUUUUUUUUUUU,
VVVVVVVVVVVVVVVVVVVVVVVVVVV,
2017-06-10 04:24:23 -05:00
WWWWWWWWWWWWWWWWWWWWWWWW,
> {
foo: Foo,
}