1 // Can't use unit struct as constructor function
3 // aux-build:empty-struct.rs
5 extern crate empty_struct;
15 let e2 = Empty2(); //~ ERROR expected function, found `Empty2`
17 //~^ ERROR expected function, found enum variant `E::Empty4` [E0618]
18 let xe2 = XEmpty2(); //~ ERROR expected function, found `empty_struct::XEmpty2`
19 let xe4 = XE::XEmpty4();
20 //~^ ERROR expected function, found enum variant `XE::XEmpty4` [E0618]