1 error[E0423]: expected function, tuple struct or tuple variant, found trait `Bar`
2 --> $DIR/privacy-ns1.rs:20:5
5 | --------------- similarly named unit struct `Baz` defined here
10 help: a unit struct with a similar name exists
14 help: possible better candidates are found in other modules, you can import them into scope
23 error[E0425]: cannot find function, tuple struct or tuple variant `Bar` in this scope
24 --> $DIR/privacy-ns1.rs:51:5
27 | --------------- similarly named unit struct `Baz` defined here
32 help: a unit struct with a similar name exists
36 help: possible candidates are found in other modules, you can import them into scope
45 error[E0412]: cannot find type `Bar` in this scope
46 --> $DIR/privacy-ns1.rs:52:17
49 | --------------- similarly named struct `Baz` defined here
51 LL | let _x: Box<Bar>;
54 help: a struct with a similar name exists
56 LL | let _x: Box<Baz>;
58 help: possible candidates are found in other modules, you can import them into scope
67 error[E0107]: wrong number of const arguments: expected 0, found 1
68 --> $DIR/privacy-ns1.rs:35:17
70 LL | let _x: Box<Bar>;
71 | ^^^ unexpected const argument
73 error[E0107]: wrong number of type arguments: expected 1, found 0
74 --> $DIR/privacy-ns1.rs:35:13
76 LL | let _x: Box<Bar>;
77 | ^^^^^^^^ expected 1 type argument
79 error: aborting due to 5 previous errors
81 Some errors have detailed explanations: E0107, E0412, E0423, E0425.
82 For more information about an error, try `rustc --explain E0107`.