]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/target/array_comment.rs
Sync portable-simd to rust-lang/portable-simd@72df4c45056a8bc0d1b3f06fdc828722177f0763
[rust.git] / src / tools / rustfmt / tests / target / 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, // Comment
11     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,
12 ];
13
14 static XXX: [i8; 64] = [
15     1, // Comment
16     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,
17     1,
18 ];