]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/usefulness/issue-3096-2.rs
Rollup merge of #80298 - PankajChaudhary5:PankajChaudhary, r=GuillaumeGomez
[rust.git] / src / test / ui / pattern / usefulness / issue-3096-2.rs
1 enum Bottom { }
2
3 fn main() {
4     let x = &() as *const () as *const Bottom;
5     match x { } //~ ERROR non-exhaustive patterns
6 }