Skip to content

Commit 80c0bd5

Browse files
committed
Added 4654 test case
1 parent 01fdd5d commit 80c0bd5

File tree

2 files changed

+71
-0
lines changed

2 files changed

+71
-0
lines changed

tests/source/issue-4654.rs

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
struct Foo {
2+
bar: ()
3+
// Comment
4+
}
5+
6+
struct Bar {
7+
baz: ()
8+
/*
9+
Comment
10+
*/
11+
}
12+
13+
struct Baz(
14+
()
15+
// Comment
16+
);
17+
18+
fn main() {
19+
let _ = Foo {
20+
bar: ()
21+
// Comment
22+
};
23+
24+
let _ = Bar {
25+
baz: ()
26+
/*
27+
Comment
28+
*/
29+
};
30+
31+
let _ = Baz(
32+
()
33+
34+
// Comment
35+
);
36+
}

tests/target/issue-4654.rs

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
struct Foo {
2+
bar: (),
3+
// Comment
4+
}
5+
6+
struct Bar {
7+
baz: (),
8+
/*
9+
Comment
10+
*/
11+
}
12+
13+
struct Baz(
14+
(),
15+
// Comment
16+
);
17+
18+
fn main() {
19+
let _ = Foo {
20+
bar: (),
21+
// Comment
22+
};
23+
24+
let _ = Bar {
25+
baz: (),
26+
/*
27+
Comment
28+
*/
29+
};
30+
31+
let _ = Baz(
32+
(),
33+
// Comment
34+
);
35+
}

0 commit comments

Comments
 (0)