]>
Commit | Line | Data |
---|---|---|
223e47cc LB |
1 | // Copyright 2012 The Rust Project Developers. See the COPYRIGHT |
2 | // file at the top-level directory of this distribution and at | |
3 | // http://rust-lang.org/COPYRIGHT. | |
4 | // | |
5 | // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or | |
6 | // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license | |
7 | // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your | |
8 | // option. This file may not be copied, modified, or distributed | |
9 | // except according to those terms. | |
10 | ||
11 | // Issue #679 | |
12 | // Testing that comments are correctly interleaved | |
13 | // pp-exact:vec-comments.pp | |
14 | fn main() { | |
1a4d82fc JJ |
15 | let _v1 = |
16 | [ | |
17 | // Comment | |
85aaf69f | 18 | 0, |
1a4d82fc | 19 | // Comment |
85aaf69f | 20 | 1, |
1a4d82fc | 21 | // Comment |
85aaf69f | 22 | 2]; |
1a4d82fc | 23 | let _v2 = |
85aaf69f SL |
24 | [0, // Comment |
25 | 1, // Comment | |
26 | 2]; // Comment | |
1a4d82fc JJ |
27 | let _v3 = |
28 | [ | |
29 | /* Comment */ | |
85aaf69f | 30 | 0, |
1a4d82fc | 31 | /* Comment */ |
85aaf69f | 32 | 1, |
1a4d82fc | 33 | /* Comment */ |
85aaf69f | 34 | 2]; |
1a4d82fc | 35 | let _v4 = |
85aaf69f SL |
36 | [0, /* Comment */ |
37 | 1, /* Comment */ | |
38 | 2]; /* Comment */ | |
223e47cc | 39 | } |