rust/tests/ui/pattern/usefulness/issue-3096-2.rs
2023-01-11 09:32:08 +00:00

7 lines
128 B
Rust

enum Bottom { }
fn main() {
let x = &() as *const () as *const Bottom;
match x { } //~ ERROR non-exhaustive patterns
}