Skip to content

Commit 84ff001

Browse files
ChinYing-Licalebcartwright
authored andcommitted
Add the case in duplicate issue (#4806) to the idempotent tests
1 parent dac2423 commit 84ff001

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

Diff for: tests/source/issue-4312.rs

+14
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,22 @@
1+
// issue 4312
12
fn main() {
23
/* " */
34
println!("Hello, world!");
45
/* abc " */
56
println!("Hello, world!");
67
/* " abc */
78
println!("Hello, world!");
9+
let y = 4;
10+
let x = match 1 + y == 3 {
11+
True => 3,
12+
False => 4,
13+
/* " unreachable */
14+
};
15+
}
16+
17+
// issue 4806
18+
enum X {
19+
A,
20+
B,
21+
/*"*/
822
}

Diff for: tests/target/issue-4312.rs

+14
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,22 @@
1+
// issue 4312
12
fn main() {
23
/* " */
34
println!("Hello, world!");
45
/* abc " */
56
println!("Hello, world!");
67
/* " abc */
78
println!("Hello, world!");
9+
let y = 4;
10+
let x = match 1 + y == 3 {
11+
True => 3,
12+
False => 4,
13+
/* " unreachable */
14+
};
15+
}
16+
17+
// issue 4806
18+
enum X {
19+
A,
20+
B,
21+
/*"*/
822
}

0 commit comments

Comments
 (0)