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
|
|
|
|
// rustfmt-where_indent: Block
|
2015-09-01 01:53:16 -05:00
|
|
|
// rustfmt-where_layout: Mixed
|
2015-09-01 01:20:17 -05:00
|
|
|
// Test different indents.
|
|
|
|
|
2017-03-19 17:59:08 -05:00
|
|
|
fn foo(
|
|
|
|
a: Aaaaaaaaaaaaaaa,
|
2017-03-19 17:07:33 -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<
|
|
|
|
'a: 'bbbbbbbbbbbbbbbbbbbbbbbbbbb,
|
2015-09-01 01:20:17 -05:00
|
|
|
TTTTTTTTTTTTT,
|
2017-03-12 17:25:46 -05:00
|
|
|
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: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();
|
|
|
|
}
|
|
|
|
|
2015-09-01 01:53:16 -05:00
|
|
|
fn qux()
|
2017-03-19 17:07:33 -05:00
|
|
|
where X: TTTTTTTTTTTTTTTTTTTTTTTTTTTT, X: TTTTTTTTTTTTTTTTTTTTTTTTTTTT,
|
|
|
|
X: TTTTTTTTTTTTTTTTTTTTTTTTTTTT, X: TTTTTTTTTTTTTTTTTTTTTTTTTTTT
|
2015-09-01 01:53:16 -05:00
|
|
|
{
|
|
|
|
baz();
|
|
|
|
}
|
|
|
|
|
2015-09-01 01:20:17 -05:00
|
|
|
impl Foo {
|
2017-03-19 17:59:08 -05:00
|
|
|
fn foo(
|
|
|
|
self,
|
2017-03-19 17:07:33 -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<
|
|
|
|
'a: 'bbbbbbbbbbbbbbbbbbbbbbbbbbb,
|
2015-09-01 01:20:17 -05:00
|
|
|
TTTTTTTTTTTTT,
|
2017-03-12 17:25:46 -05:00
|
|
|
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: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();
|
|
|
|
}
|
2015-09-01 01:20:17 -05:00
|
|
|
}
|
|
|
|
|
2017-03-12 17:25:46 -05:00
|
|
|
struct Foo<
|
|
|
|
TTTTTTTTTTTTTTTTTTTTTTTTTTTT,
|
2015-09-01 01:20:17 -05:00
|
|
|
UUUUUUUUUUUUUUUUUUUUUU,
|
|
|
|
VVVVVVVVVVVVVVVVVVVVVVVVVVV,
|
2017-03-12 17:25:46 -05:00
|
|
|
WWWWWWWWWWWWWWWWWWWWWWWW
|
|
|
|
> {
|
2015-09-01 01:20:17 -05:00
|
|
|
foo: Foo,
|
|
|
|
}
|