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