2015-09-01 01:20:17 -05:00
|
|
|
// rustfmt-fn_arg_indent: Tabbed
|
|
|
|
// rustfmt-generics_indent: Inherit
|
2015-09-01 01:53:16 -05:00
|
|
|
// rustfmt-where_layout: HorizontalVertical
|
2015-09-01 01:20:17 -05:00
|
|
|
// Test different indents.
|
|
|
|
|
|
|
|
fn foo(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: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 {
|
|
|
|
fn foo(self,
|
|
|
|
a: Aaaaaaaaaaaaaaa,
|
|
|
|
b: Bbbbbbbbbbbbbbbb,
|
|
|
|
c: Ccccccccccccccccc,
|
|
|
|
d: Dddddddddddd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