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

77 lines
1.3 KiB
Rust
Raw Normal View History

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