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, found trait `Bar`
23 // private type, public value
35 let _x: Box<Bar>; //~ ERROR expected type, found function `Bar`
50 Bar(); //~ ERROR cannot find function `Bar` in this scope
51 let _x: Box<Bar>; //~ ERROR cannot find type `Bar` in this scope