]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/target/fn-custom.rs
Merge commit '3c7e7dbc1583a0b06df5bd7623dd354a4debd23d' into clippyup
[rust.git] / src / tools / rustfmt / tests / target / 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(
6     a: Aaaaaaaaaaaaaaa, b: Bbbbbbbbbbbbbbbb, c: Ccccccccccccccccc, d: Ddddddddddddddddddddddddd,
7     e: Eeeeeeeeeeeeeeeeeee,
8 ) {
9     foo();
10 }
11
12 impl Foo {
13     fn foo(
14         self, a: Aaaaaaaaaaaaaaa, b: Bbbbbbbbbbbbbbbb, c: Ccccccccccccccccc,
15         d: Ddddddddddddddddddddddddd, e: Eeeeeeeeeeeeeeeeeee,
16     ) {
17         foo();
18     }
19 }