]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/target/fn-custom.rs
Rollup merge of #85361 - bjorn3:rustdoc_target_json_path_canonicalize, r=jyn514
[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 }