summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/trailing-comma-never.rs
blob: ea199f5ff29452bcc93bc9c7fbd9f3f2e7688281 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// rustfmt-trailing_comma: Never

enum X {
    A,
    B
}

enum Y {
    A,
    B
}

enum TupX {
    A(u32),
    B(i32, u16)
}

enum TupY {
    A(u32),
    B(i32, u16)
}

enum StructX {
    A { s: u16 },
    B { u: u32, i: i32 }
}

enum StructY {
    A { s: u16 },
    B { u: u32, i: i32 }
}

static XXX: [i8; 64] = [
    1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
];