blob: 48466af5048154f2de06c2dcad23ffd073c2074a [file] [edit]
// issue rust-lang/rust#121463
// ICE non-ADT in struct pattern
#![feature(box_patterns)]
fn main() {
let mut a = E::StructVar { boxed: Box::new(5_i32) };
//~^ ERROR cannot find type `E`
match a {
E::StructVar { box boxed } => { }
//~^ ERROR cannot find type `E`
}
}