summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/array_comment.rs
blob: 93e1f5f403457f2ee8a8ce695e30f75b9fbe10d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Issue 2842
// The comment should not make the last line shorter

static XXX: [i8; 64] = [
    1, // Comment
    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, 1, 1, 1,
];

static XXX: [i8; 64] = [
    1, // Comment
    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, 1, 1, 1, 1,
];

static XXX: [i8; 64] = [
    1, // Comment
    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, 1, 1, 1, 1,
    1,
];