summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/fn-custom.rs
blob: 506d9de34370b0dfaf9415e41cd4647ae4bfe3c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// rustfmt-fn_params_layout: Compressed
// Test some of the ways function signatures can be customised.

// Test compressed layout of args.
fn foo(
    a: Aaaaaaaaaaaaaaa, b: Bbbbbbbbbbbbbbbb, c: Ccccccccccccccccc, d: Ddddddddddddddddddddddddd,
    e: Eeeeeeeeeeeeeeeeeee,
) {
    foo();
}

impl Foo {
    fn foo(
        self, a: Aaaaaaaaaaaaaaa, b: Bbbbbbbbbbbbbbbb, c: Ccccccccccccccccc,
        d: Ddddddddddddddddddddddddd, e: Eeeeeeeeeeeeeeeeeee,
    ) {
        foo();
    }
}