]> git.lizzy.rs Git - rust.git/blob - tests/target/fn-custom.rs
Merge pull request #374 from nrc/fix-fn
[rust.git] / tests / target / fn-custom.rs
1 // rustfmt-fn_args_density: Compressed
2 // Test some of the ways function signatures can be customised.
3
4 // Test compressed layout of args.
5 fn foo(a: Aaaaaaaaaaaaaaa, b: Bbbbbbbbbbbbbbbb, c: Ccccccccccccccccc, d: Ddddddddddddddddddddddddd,
6        e: Eeeeeeeeeeeeeeeeeee) {
7     foo();
8 }
9
10 impl Foo {
11     fn foo(self, a: Aaaaaaaaaaaaaaa, b: Bbbbbbbbbbbbbbbb, c: Ccccccccccccccccc,
12            d: Ddddddddddddddddddddddddd, e: Eeeeeeeeeeeeeeeeeee) {
13         foo();
14     }
15 }