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`
26 Bar(); //~ ERROR expected function, tuple struct or tuple variant, found trait `Bar`
29 // private type, public value
41 let _x : Box<Bar>; //~ ERROR constant provided when a type was expected
42 let _x : Bar(); //~ ERROR expected type, found function `Bar`
48 let _x: Box<Bar>; //~ ERROR constant provided when a type was expected
61 use foo3::Bar; //~ ERROR `Bar` is private
65 use foo3::Bar; //~ ERROR `Bar` is private
72 use foo3::{Bar,Baz}; //~ ERROR `Bar` is private