]> git.proxmox.com Git - rustc.git/blame - src/tools/rustfmt/tests/source/array_comment.rs
Update upstream source from tag 'upstream/1.52.1+dfsg1'
[rustc.git] / src / tools / rustfmt / tests / source / array_comment.rs
CommitLineData
f20569fa
XL
1// Issue 2842
2// The comment should not make the last line shorter
3
4static 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
9static 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
15static 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];