1 error[E0423]: expected function, tuple struct or tuple variant, found trait `Bar`
2 --> $DIR/privacy-ns2.rs:20:5
5 | ^^^ not a function, tuple struct or tuple variant
7 help: possible better candidates are found in other modules, you can import them into scope
16 error[E0423]: expected function, tuple struct or tuple variant, found trait `Bar`
17 --> $DIR/privacy-ns2.rs:26:5
20 | --------------- similarly named unit struct `Baz` defined here
25 help: a unit struct with a similar name exists
29 help: possible better candidates are found in other modules, you can import them into scope
38 error[E0573]: expected type, found function `Bar`
39 --> $DIR/privacy-ns2.rs:41:18
41 LL | let _x : Box<Bar>;
44 help: possible better candidates are found in other modules, you can import them into scope
53 error[E0573]: expected type, found function `Bar`
54 --> $DIR/privacy-ns2.rs:47:17
57 | --------------- similarly named struct `Baz` defined here
59 LL | let _x: Box<Bar>;
62 help: a struct with a similar name exists
64 LL | let _x: Box<Baz>;
66 help: possible better candidates are found in other modules, you can import them into scope
75 error[E0603]: trait `Bar` is private
76 --> $DIR/privacy-ns2.rs:60:15
81 error[E0603]: trait `Bar` is private
82 --> $DIR/privacy-ns2.rs:64:15
87 error[E0603]: trait `Bar` is private
88 --> $DIR/privacy-ns2.rs:71:16
90 LL | use foo3::{Bar,Baz};
93 error: aborting due to 7 previous errors
95 Some errors have detailed explanations: E0423, E0573, E0603.
96 For more information about an error, try `rustc --explain E0423`.