]> git.lizzy.rs Git - rust.git/blob - src/test/ui/match/const_non_normal_zst_ref_pattern.rs
Make some diagnostics not depend on the source of what they reference being available
[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 }