1 // Can't use empty braced struct as enum pattern
3 // aux-build:empty-struct.rs
5 extern crate empty_struct;
13 let e3 = E::Empty3 {};
14 let xe3 = XE::XEmpty3 {};
18 //~^ ERROR expected tuple struct or tuple variant, found struct variant `E::Empty3`
22 //~^ ERROR expected tuple struct or tuple variant, found struct variant `XE::XEmpty3`
26 //~^ ERROR expected tuple struct or tuple variant, found struct variant `E::Empty3`
30 //~^ ERROR expected tuple struct or tuple variant, found struct variant `XE::XEmpty3