summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/fn-custom.rs
blob: 2eb2a973d243d6937d81012efd7308772cc750e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// rustfmt-fn_args_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();
    }
}