summaryrefslogtreecommitdiffstats
path: root/src/test/ui/match/const_non_normal_zst_ref_pattern.rs
blob: a114fafb6473012e88b9975ee88deb085cef82cd (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,
    };
}