1 error[E0423]: expected function, found trait `Bar`
2 --> $DIR/privacy-ns2.rs:20:5
6 help: possible better candidates are found in other modules, you can import them into scope
15 error[E0423]: expected function, found trait `Bar`
16 --> $DIR/privacy-ns2.rs:26:5
20 help: a unit struct with a similar name exists
24 help: possible better candidates are found in other modules, you can import them into scope
33 error[E0573]: expected type, found function `Bar`
34 --> $DIR/privacy-ns2.rs:41:18
36 LL | let _x : Box<Bar>;
38 help: possible better candidates are found in other modules, you can import them into scope
47 error[E0573]: expected type, found function `Bar`
48 --> $DIR/privacy-ns2.rs:47:17
50 LL | let _x: Box<Bar>;
52 help: a struct with a similar name exists
54 LL | let _x: Box<Baz>;
56 help: possible better candidates are found in other modules, you can import them into scope
65 error[E0603]: trait `Bar` is private
66 --> $DIR/privacy-ns2.rs:60:15
71 error[E0603]: trait `Bar` is private
72 --> $DIR/privacy-ns2.rs:64:15
77 error[E0603]: trait `Bar` is private
78 --> $DIR/privacy-ns2.rs:71:16
80 LL | use foo3::{Bar,Baz};
83 error: aborting due to 7 previous errors
85 Some errors have detailed explanations: E0423, E0573, E0603.
86 For more information about an error, try `rustc --explain E0423`.