]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/source/fn-custom.rs
Merge commit 'fdb84cbfd25908df5683f8f62388f663d9260e39' into clippyup
[rust.git] / src / tools / rustfmt / tests / source / fn-custom.rs
1 // rustfmt-fn_args_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 }