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:43: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:63:15
51 note: the trait `Bar` is defined here
52 --> $DIR/privacy-ns2.rs:55:5
57 error[E0603]: trait `Bar` is private
58 --> $DIR/privacy-ns2.rs:67:15
63 note: the trait `Bar` is defined here
64 --> $DIR/privacy-ns2.rs:55:5
69 error[E0603]: trait `Bar` is private
70 --> $DIR/privacy-ns2.rs:74:16
72 LL | use foo3::{Bar,Baz};
75 note: the trait `Bar` is defined here
76 --> $DIR/privacy-ns2.rs:55:5
81 error[E0107]: wrong number of const arguments: expected 0, found 1
82 --> $DIR/privacy-ns2.rs:41:18
84 LL | let _x : Box<Bar>;
85 | ^^^ unexpected const argument
87 error[E0107]: wrong number of type arguments: expected 1, found 0
88 --> $DIR/privacy-ns2.rs:41:14
90 LL | let _x : Box<Bar>;
91 | ^^^^^^^^ expected 1 type argument
93 error[E0107]: wrong number of const arguments: expected 0, found 1
94 --> $DIR/privacy-ns2.rs:49:17
96 LL | let _x: Box<Bar>;
97 | ^^^ unexpected const argument
99 error[E0107]: wrong number of type arguments: expected 1, found 0
100 --> $DIR/privacy-ns2.rs:49:13
102 LL | let _x: Box<Bar>;
103 | ^^^^^^^^ expected 1 type argument
105 error: aborting due to 10 previous errors
107 Some errors have detailed explanations: E0107, E0423, E0573, E0603.
108 For more information about an error, try `rustc --explain E0107`.