20 use m::n::Z; // OK, only the type is imported
24 //~^ ERROR expected value, found enum `n::Z`
26 //~^ ERROR expected value, found enum `Z`
28 //~^ ERROR mismatched types
30 //~^ ERROR expected value, found struct variant `Z::Struct`
32 //~^ ERROR expected function, found enum variant `Z::Unit`
34 // This is ok, it is equivalent to not having braces
38 use m::E; // OK, only the type is imported
42 //~^ ERROR expected value, found enum `m::E`
44 //~^ ERROR mismatched types
45 let _: E = m::E::Struct;
46 //~^ ERROR expected value, found struct variant `m::E::Struct`
47 let _: E = m::E::Unit();
48 //~^ ERROR expected function, found enum variant `m::E::Unit`
50 //~^ ERROR expected value, found enum `E`
52 //~^ ERROR mismatched types
54 //~^ ERROR expected value, found struct variant `E::Struct`
56 //~^ ERROR expected function, found enum variant `E::Unit`
58 //~^ ERROR cannot find type `Z` in this scope
59 //~| ERROR expected value, found enum `m::n::Z`
60 //~| ERROR enum `Z` is private
61 let _: Z = m::n::Z::Fn;
62 //~^ ERROR cannot find type `Z` in this scope
63 //~| ERROR enum `Z` is private
64 let _: Z = m::n::Z::Struct;
65 //~^ ERROR cannot find type `Z` in this scope
66 //~| ERROR expected value, found struct variant `m::n::Z::Struct`
67 //~| ERROR enum `Z` is private
68 let _: Z = m::n::Z::Unit {};
69 //~^ ERROR cannot find type `Z` in this scope
70 //~| ERROR enum `Z` is private