]> git.lizzy.rs Git - rust.git/blob - src/test/ui/match/const_non_normal_zst_ref_pattern.rs
Auto merge of #93432 - Kobzol:stable-hash-isize-hash-compression, r=the8472
[rust.git] / src / test / ui / match / const_non_normal_zst_ref_pattern.rs
1 // check-pass
2
3 const FOO: isize = 10;
4 const ZST: &() = unsafe { std::mem::transmute(FOO) };
5 fn main() {
6     match &() {
7         ZST => 9,
8     };
9 }