mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
81 lines
1.3 KiB
Rust
81 lines
1.3 KiB
Rust
// rustfmt-fn_args_layout: Block
|
|
// rustfmt-generics_indent: Block
|
|
// rustfmt-where_layout: Mixed
|
|
// 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();
|
|
}
|
|
|
|
fn baz()
|
|
where
|
|
X: TTTTTTTT,
|
|
{
|
|
baz();
|
|
}
|
|
|
|
fn qux()
|
|
where
|
|
X: TTTTTTTTTTTTTTTTTTTTTTTTTTTT,
|
|
X: TTTTTTTTTTTTTTTTTTTTTTTTTTTT,
|
|
X: TTTTTTTTTTTTTTTTTTTTTTTTTTTT,
|
|
X: TTTTTTTTTTTTTTTTTTTTTTTTTTTT,
|
|
{
|
|
baz();
|
|
}
|
|
|
|
impl Foo {
|
|
fn foo(
|
|
self,
|
|
a: Aaaaaaaaaaaaaaa,
|
|
b: Bbbbbbbbbbbbbbbb,
|
|
c: Ccccccccccccccccc,
|
|
d: Ddddddddddddddddddddddddd,
|
|
e: Eeeeeeeeeeeeeeeeeee,
|
|
) {
|
|
foo();
|
|
}
|
|
|
|
fn bar<
|
|
'a: 'bbbbbbbbbbbbbbbbbbbbbbbbbbb,
|
|
TTTTTTTTTTTTT,
|
|
UUUUUUUUUUUUUUUUUUUU: WWWWWWWWWWWWWWWWWWWWWWWW,
|
|
>(
|
|
a: Aa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