Skip to content

Commit e22be28

Browse files
committed
Remove test statements that are now optimised away
1 parent 63c7a3e commit e22be28

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/test/compile-fail/uninhabited-matches-feature-gated.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ fn main() {
2121
let x: &Void = unsafe { std::mem::uninitialized() };
2222
let _ = match x {}; //~ ERROR non-exhaustive
2323

24-
let x: (Void,) = unsafe { std::mem::uninitialized() };
25-
let _ = match x {}; //~ ERROR non-exhaustive
26-
2724
let x: [Void; 1] = unsafe { std::mem::uninitialized() };
2825
let _ = match x {}; //~ ERROR non-exhaustive
2926

@@ -32,9 +29,6 @@ fn main() {
3229
&[] => (),
3330
};
3431

35-
let x: Void = unsafe { std::mem::uninitialized() };
36-
let _ = match x {}; // okay
37-
3832
let x: Result<u32, Void> = Ok(23);
3933
let _ = match x { //~ ERROR non-exhaustive
4034
Ok(x) => x,

0 commit comments

Comments
 (0)