2017-11-13 01:09:59 -06:00
|
|
|
// rustfmt-indent_style: Block
|
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,
|
2017-06-10 04:24:23 -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:53:16 -05:00
|
|
|
fn qux()
|
2017-06-11 23:01:41 -05:00
|
|
|
where
|
|
|
|
X: TTTTTTTTTTTTTTTTTTTTTTTTTTTT,
|
|
|
|
X: TTTTTTTTTTTTTTTTTTTTTTTTTTTT,
|
2015-09-01 01:53:16 -05:00
|
|
|
{
|
|
|
|
baz();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn qux()
|
2017-06-11 23:01:41 -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,
|
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,
|
2017-06-10 04:24:23 -05:00
|
|
|
UUUUUUUUUUUUUUUUUUUU: WWWWWWWWWWWWWWWWWWWWWWWW,
|
2017-06-03 09:16:29 -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,
|
2017-06-10 04:24:23 -05:00
|
|
|
WWWWWWWWWWWWWWWWWWWWWWWW,
|
2017-03-12 17:25:46 -05:00
|
|
|
> {
|
2015-09-01 01:20:17 -05:00
|
|
|
foo: Foo,
|
|
|
|
}
|