1 // Can't use empty braced struct as constant pattern
3 // aux-build:empty-struct.rs
5 extern crate empty_struct;
16 let e3 = E::Empty3 {};
18 let xe3 = XE::XEmpty3 {};
21 Empty1 => () // Not an error, `Empty1` is interpreted as a new binding
25 //~^ ERROR expected unit struct, unit variant or constant, found struct variant `E::Empty3`
28 XEmpty1 => () // Not an error, `XEmpty1` is interpreted as a new binding
32 //~^ ERROR expected unit struct, unit variant or constant, found struct variant `XE::XEmpty3`