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: consider importing this function instead
19 error[E0425]: cannot find function, tuple struct or tuple variant `Bar` in this scope
20 --> $DIR/privacy-ns1.rs:51:5
23 | --------------- similarly named unit struct `Baz` defined here
28 help: a unit struct with a similar name exists
32 help: consider importing this function
37 error[E0412]: cannot find type `Bar` in this scope
38 --> $DIR/privacy-ns1.rs:52:17
41 | --------------- similarly named struct `Baz` defined here
43 LL | let _x: Box<Bar>;
46 help: a struct with a similar name exists
48 LL | let _x: Box<Baz>;
50 help: consider importing this trait
55 error[E0747]: constant provided when a type was expected
56 --> $DIR/privacy-ns1.rs:35:17
58 LL | let _x: Box<Bar>;
61 = help: `Bar` is a function item, not a type
62 = help: function item types cannot be named directly
64 error: aborting due to 4 previous errors
66 Some errors have detailed explanations: E0412, E0423, E0425, E0747.
67 For more information about an error, try `rustc --explain E0412`.