]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/source/fn-custom.rs
Rollup merge of #106960 - estebank:parse-anon-enums, r=cjgillot
[rust.git] / src / tools / rustfmt / tests / source / fn-custom.rs
1 // rustfmt-fn_params_layout: 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, e: Eeeeeeeeeeeeeeeeeee) {
6     foo();
7 }
8
9 impl Foo {
10     fn foo(self, a: Aaaaaaaaaaaaaaa, b: Bbbbbbbbbbbbbbbb, c: Ccccccccccccccccc, d: Ddddddddddddddddddddddddd, e: Eeeeeeeeeeeeeeeeeee) {
11         foo();
12     }    
13 }