Skip to content

Commit e764562

Browse files
committed
Improved 3532 test case
1 parent 80c0bd5 commit e764562

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

tests/source/issue-3532.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
fn foo(a: T) {
22
match a {
3-
1 => {}
4-
0 => {}
5-
// _ => panic!("doesn't format!"),
3+
0 => {}
4+
// _ => panic!("doesn't format!"),
5+
1 => {} // _ => panic!("doesn't format!"),
6+
// _ => panic!("doesn't format!"),
7+
2 => {}
8+
// _ => panic!("doesn't format!"),
69
}
710
}

tests/target/issue-3532.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
fn foo(a: T) {
22
match a {
3-
1 => {}
4-
0 => {} // _ => panic!("doesn't format!"),
3+
0 => {}
4+
// _ => panic!("doesn't format!"),
5+
1 => {} // _ => panic!("doesn't format!"),
6+
// _ => panic!("doesn't format!"),
7+
2 => {}
8+
// _ => panic!("doesn't format!"),
59
}
610
}

0 commit comments

Comments
 (0)