1 // Can't use empty braced struct as enum pattern
3 // aux-build:empty-struct.rs
5 extern crate empty_struct;
15 Empty1() => () //~ ERROR expected tuple struct or tuple variant, found struct `Empty1`
18 XEmpty1() => () //~ ERROR expected tuple struct or tuple variant, found struct `XEmpty1`
21 Empty1(..) => () //~ ERROR expected tuple struct or tuple variant, found struct `Empty1`
24 XEmpty1(..) => () //~ ERROR expected tuple struct or tuple variant, found struct `XEmpty1`