1 // Check we do the correct privacy checks when we import a name and there is an
2 // item with that name in both the value and type namespaces.
5 #![allow(unused_imports)]
8 // public type, private value
20 Bar(); //~ ERROR expected function, tuple struct or tuple variant, found trait `Bar`
23 // private type, public value
36 //~^ ERROR constant provided when a type was expected
51 Bar(); //~ ERROR cannot find function, tuple struct or tuple variant `Bar` in this scope
52 let _x: Box<Bar>; //~ ERROR cannot find type `Bar` in this scope