]> git.lizzy.rs Git - rust.git/blob - tests/ui/union/union-const-pat.rs
add (currently ICEing) test
[rust.git] / tests / ui / union / union-const-pat.rs
1 union U {
2     a: usize,
3     b: usize,
4 }
5
6 const C: U = U { a: 10 };
7
8 fn main() {
9     match C {
10         C => {} //~ ERROR cannot use unions in constant patterns
11         _ => {}
12     }
13 }