rust/tests/ui/pattern/usefulness/issue-3096-2.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
128 B
Rust
Raw Normal View History

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