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: consider importing this function instead
12 error[E0423]: expected function, tuple struct or tuple variant, found trait `Bar`
13 --> $DIR/privacy-ns2.rs:26:5
16 | --------------- similarly named unit struct `Baz` defined here
21 help: a unit struct with a similar name exists
25 help: consider importing this function instead
30 error[E0573]: expected type, found function `Bar`
31 --> $DIR/privacy-ns2.rs:42:14
36 help: use `=` if you meant to assign
40 help: consider importing this trait instead
45 error[E0603]: trait `Bar` is private
46 --> $DIR/privacy-ns2.rs:61:15
51 note: the trait `Bar` is defined here
52 --> $DIR/privacy-ns2.rs:53:5
57 error[E0603]: trait `Bar` is private
58 --> $DIR/privacy-ns2.rs:65:15
63 note: the trait `Bar` is defined here
64 --> $DIR/privacy-ns2.rs:53:5
69 error[E0603]: trait `Bar` is private
70 --> $DIR/privacy-ns2.rs:72:16
72 LL | use foo3::{Bar,Baz};
75 note: the trait `Bar` is defined here
76 --> $DIR/privacy-ns2.rs:53:5
81 error[E0747]: constant provided when a type was expected
82 --> $DIR/privacy-ns2.rs:41:18
84 LL | let _x : Box<Bar>;
87 = help: `Bar` is a function item, not a type
88 = help: function item types cannot be named directly
90 error[E0747]: constant provided when a type was expected
91 --> $DIR/privacy-ns2.rs:48:17
93 LL | let _x: Box<Bar>;
96 = help: `Bar` is a function item, not a type
97 = help: function item types cannot be named directly
99 error: aborting due to 8 previous errors
101 Some errors have detailed explanations: E0423, E0573, E0603, E0747.
102 For more information about an error, try `rustc --explain E0423`.