mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
30 lines
536 B
Rust
30 lines
536 B
Rust
// 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 */
|
|
}
|