summary refs log tree commit diff
path: root/src/test/compile-fail/issue-3096-2.rs
blob: dd8f341b93553dcde76c936a921cbf1fd3a1ea67 (plain)
1
2
3
4
5
6
enum bottom { } 

fn main() {
    let x = ptr::addr_of(&()) as *bottom;
    match x { } //~ ERROR non-exhaustive patterns
}