1 error[E0423]: expected function, found trait `Bar`
2 --> $DIR/privacy-ns2.rs:20:5
7 help: possible better candidates are found in other modules, you can import them into scope
16 error[E0423]: expected function, found trait `Bar`
17 --> $DIR/privacy-ns2.rs:26:5
22 help: a unit struct with a similar name exists
26 help: possible better candidates are found in other modules, you can import them into scope
35 error[E0573]: expected type, found function `Bar`
36 --> $DIR/privacy-ns2.rs:41:18
38 LL | let _x : Box<Bar>;
41 help: possible better candidates are found in other modules, you can import them into scope
50 error[E0573]: expected type, found function `Bar`
51 --> $DIR/privacy-ns2.rs:47:17
53 LL | let _x: Box<Bar>;
56 help: a struct with a similar name exists
58 LL | let _x: Box<Baz>;
60 help: possible better candidates are found in other modules, you can import them into scope
69 error[E0603]: trait `Bar` is private
70 --> $DIR/privacy-ns2.rs:60:15
75 error[E0603]: trait `Bar` is private
76 --> $DIR/privacy-ns2.rs:64:15
81 error[E0603]: trait `Bar` is private
82 --> $DIR/privacy-ns2.rs:71:16
84 LL | use foo3::{Bar,Baz};
87 error: aborting due to 7 previous errors
89 Some errors have detailed explanations: E0423, E0573, E0603.
90 For more information about an error, try `rustc --explain E0423`.