We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63c7a3e commit e22be28Copy full SHA for e22be28
src/test/compile-fail/uninhabited-matches-feature-gated.rs
@@ -21,9 +21,6 @@ fn main() {
21
let x: &Void = unsafe { std::mem::uninitialized() };
22
let _ = match x {}; //~ ERROR non-exhaustive
23
24
- let x: (Void,) = unsafe { std::mem::uninitialized() };
25
- let _ = match x {}; //~ ERROR non-exhaustive
26
-
27
let x: [Void; 1] = unsafe { std::mem::uninitialized() };
28
29
@@ -32,9 +29,6 @@ fn main() {
32
&[] => (),
33
30
};
34
31
35
- let x: Void = unsafe { std::mem::uninitialized() };
36
- let _ = match x {}; // okay
37
38
let x: Result<u32, Void> = Ok(23);
39
let _ = match x { //~ ERROR non-exhaustive
40
Ok(x) => x,
0 commit comments