summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/source/trailing-comma-never.rs
blob: c74267cd17903515fd580c176166c55f99daf441 (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
36
37
38
39
40
41
42
43
44
45
// 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,
];