rust/tests/pretty/vec-comments.rs

30 lines
536 B
Rust
Raw Normal View History

// Issue #679
// Testing that comments are correctly interleaved
//@ pp-exact:vec-comments.pp
fn main() {
2013-08-17 15:37:42 +00:00
let _v1 =
[
// Comment
2015-01-25 21:05:03 +00:00
0,
// Comment
2015-01-25 21:05:03 +00:00
1,
// Comment
2015-01-25 21:05:03 +00:00
2];
2013-08-17 15:37:42 +00:00
let _v2 =
2015-01-25 21:05:03 +00:00
[0, // Comment
1, // Comment
2]; // Comment
2013-08-17 15:37:42 +00:00
let _v3 =
[
/* Comment */
2015-01-25 21:05:03 +00:00
0,
/* Comment */
2015-01-25 21:05:03 +00:00
1,
/* Comment */
2015-01-25 21:05:03 +00:00
2];
2013-08-17 15:37:42 +00:00
let _v4 =
2015-01-25 21:05:03 +00:00
[0, /* Comment */
1, /* Comment */
2]; /* Comment */
}