mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-12 00:24:03 +00:00
61 lines
1.2 KiB
Rust
61 lines
1.2 KiB
Rust
// rustfmt-fn_arg_indent: Tabbed
|
|
// rustfmt-generics_indent: Inherit
|
|
// rustfmt-where_layout: HorizontalVertical
|
|
// 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 qux()
|
|
where X: TTTTTTTTTTTTTTTTTTTTTTTTTTTT, X: TTTTTTTTTTTTTTTTTTTTTTTTTTTT
|
|
{
|
|
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: Aaaaaaaaaaaaaaa) {
|
|
bar();
|
|
}
|
|
}
|
|
|
|
struct Foo<TTTTTTTTTTTTTTTTTTTTTTTTTTTT,
|
|
UUUUUUUUUUUUUUUUUUUUUU,
|
|
VVVVVVVVVVVVVVVVVVVVVVVVVVV,
|
|
WWWWWWWWWWWWWWWWWWWWWWWW>
|
|
{
|
|
foo: Foo,
|
|
}
|