]> git.lizzy.rs Git - rust.git/blob - tests/source/array_comment.rs
Add a test for #3031 and update test
[rust.git] / 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 ];