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 wrong number of const arguments: expected 0, found 1
42 //~^ ERROR wrong number of type arguments: expected at least 1, found 0
43 let _x : Bar(); //~ ERROR expected type, found function `Bar`
49 let _x: Box<Bar>; //~ ERROR wrong number of const arguments: expected 0, found 1
50 //~^ ERROR wrong number of type arguments: expected at least 1, found 0
63 use foo3::Bar; //~ ERROR `Bar` is private
67 use foo3::Bar; //~ ERROR `Bar` is private
74 use foo3::{Bar,Baz}; //~ ERROR `Bar` is private