]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/source/array_comment.rs
Rollup merge of #107166 - petrochenkov:nooptable, r=oli-obk
[rust.git] / src / tools / rustfmt / tests / source / array_comment.rs
1 // Issue 2842
2 // The comment should not make the last line shorter
3
4 static XXX: [i8; 64] = [
5     1, // Comment
6     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,
7 ];
8
9 static XXX: [i8; 64] = [
10     1,
11     // Comment
12     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,
13 ];
14
15 static XXX: [i8; 64] = [
16     1,
17     // Comment
18     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,
19 ];