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,
|
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-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:38:12 -05:00
|
|
|
fn baz()
|
2017-06-11 23:01:41 -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-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,
|
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-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();
|
|
|
|
}
|
2015-09-01 01:38:12 -05:00
|
|
|
|
|
|
|
fn baz()
|
2017-06-11 23:01:41 -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-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,
|
|
|
|
}
|