]> git.lizzy.rs Git - rust.git/blob - tests/pretty/vec-comments.pp
Rollup merge of #107752 - riverar:rafael/gnu_dlltool_temp_prefix, r=petrochenkov
[rust.git] / tests / pretty / vec-comments.pp
1 // Issue #679
2 // Testing that comments are correctly interleaved
3 // pp-exact:vec-comments.pp
4 fn 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 }