]> git.proxmox.com Git - rustc.git/blame - src/test/pretty/vec-comments.pp
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / pretty / vec-comments.pp
CommitLineData
223e47cc
LB
1// Issue #679
2// Testing that comments are correctly interleaved
3// pp-exact:vec-comments.pp
4fn main() {
1a4d82fc
JJ
5 let _v1 =
6 [
5099ac24
FG
7 // Comment
8 0,
9 // Comment
10 1,
11 // Comment
12 2];
1a4d82fc 13 let _v2 =
85aaf69f 14 [0, // Comment
5099ac24
FG
15 1, // Comment
16 2]; // Comment
1a4d82fc
JJ
17 let _v3 =
18 [
5099ac24
FG
19 /* Comment */
20 0,
21 /* Comment */
22 1,
23 /* Comment */
24 2];
1a4d82fc 25 let _v4 =
85aaf69f 26 [0, /* Comment */
5099ac24
FG
27 1, /* Comment */
28 2]; /* Comment */
223e47cc 29}