summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/source/array_comment.rs
blob: 87372b2793fc13ce05dcb0e2fd92a4caddd37459 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// 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,
];