blob: cb2248cc6d18924f30e0b426022095f23af4933d [file] [log] [blame]
union U {
a: usize,
b: usize,
}
const C: U = U { a: 10 };
fn main() {
match C {
C => {} //~ ERROR cannot use unions in constant patterns
//~| ERROR cannot use unions in constant patterns
_ => {}
}
}