about summary refs log tree commit diff
path: root/src/test/pretty/vec-comments.pp
blob: 2cd5fffdf7598f476e0ce30786f9b5429a86f6c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Issue #679
// Testing that comments are correctly interleaved
// pp-exact:vec-comments.pp
fn main() {
    let v1 =
        [
         // Comment
         0,
         // Comment
         1,
         // Comment
         2];
    let v2 =
        [0, // Comment
         1, // Comment
         2]; // Comment
    let v3 =
        [
         /* Comment */
         0,
         /* Comment */
         1,
         /* Comment */
         2];
    let v4 =
        [0, /* Comment */
         1, /* Comment */
         2]; /* Comment */
}