rust/tests/target/fn-custom-2.rs

66 lines
1.2 KiB
Rust
Raw Normal View History

// rustfmt-fn_arg_indent: Inherit
// rustfmt-generics_indent: Tabbed
2015-09-01 06:38:12 +00:00
// rustfmt-where_indent: Inherit
// 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();
}
2015-09-01 06:38:12 +00:00
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: Aaaaaaaaaaaaaaa) {
bar();
}
2015-09-01 06:38:12 +00:00
fn baz()
where X: TTTTTTTT
{
baz();
}
}
struct Foo<TTTTTTTTTTTTTTTTTTTTTTTTTTTT,
UUUUUUUUUUUUUUUUUUUUUU,
VVVVVVVVVVVVVVVVVVVVVVVVVVV,
WWWWWWWWWWWWWWWWWWWWWWWW>
{
foo: Foo,
}