about summary refs log tree commit diff
path: root/tests/ui/match/const_non_normal_zst_ref_pattern.rs
blob: 834b2fefaa80a47a35e53741baede9256f4693f6 (plain)
1
2
3
4
5
6
7
8
9
//@ check-pass

const FOO: isize = 10;
const ZST: &() = unsafe { std::mem::transmute(FOO) };
fn main() {
    match &() {
        ZST => 9,
    };
}