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`
26 Bar(); //~ ERROR expected function, found trait `Bar`
29 // private type, public value
41 let _x : Box<Bar>; //~ ERROR expected type, found function `Bar`
47 let _x: Box<Bar>; //~ ERROR expected type, found function `Bar`
60 use foo3::Bar; //~ ERROR `Bar` is private
64 use foo3::Bar; //~ ERROR `Bar` is private
71 use foo3::{Bar,Baz}; //~ ERROR `Bar` is private