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