fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
535 B29 linesraw
1// Issue #679
2// Testing that comments are correctly interleaved
3// pp-exact:vec-comments.pp
4fn 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}