summaryrefslogtreecommitdiffstats
path: root/tests/ui/pattern/usefulness/issue-3096-2.rs
blob: a26e425809fbb037910f1adad1a53de3ca766b37 (plain)
1
2
3
4
5
6
enum Bottom { }

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