1error[E0423]: expected function, tuple struct or tuple variant, found trait `Bar`
2  --> $DIR/privacy-ns1.rs:20:5
3   |
4LL |     pub struct Baz;
5   |     --------------- similarly named unit struct `Baz` defined here
6...
7LL |     Bar();
8   |     ^^^
9   |
10help: a unit struct with a similar name exists
11   |
12LL |     Baz();
13   |     ~~~
14help: consider importing this function instead
15   |
16LL | use foo2::Bar;
17   |
18
19error[E0425]: cannot find function, tuple struct or tuple variant `Bar` in this scope
20  --> $DIR/privacy-ns1.rs:51:5
21   |
22LL |     pub struct Baz;
23   |     --------------- similarly named unit struct `Baz` defined here
24...
25LL |     Bar();
26   |     ^^^
27   |
28help: a unit struct with a similar name exists
29   |
30LL |     Baz();
31   |     ~~~
32help: consider importing this function
33   |
34LL | use foo2::Bar;
35   |
36
37error[E0412]: cannot find type `Bar` in this scope
38  --> $DIR/privacy-ns1.rs:52:17
39   |
40LL |     pub struct Baz;
41   |     --------------- similarly named struct `Baz` defined here
42...
43LL |     let _x: Box<Bar>;
44   |                 ^^^
45   |
46help: a struct with a similar name exists
47   |
48LL |     let _x: Box<Baz>;
49   |                 ~~~
50help: consider importing this trait
51   |
52LL | use foo1::Bar;
53   |
54
55error[E0747]: constant provided when a type was expected
56  --> $DIR/privacy-ns1.rs:35:17
57   |
58LL |     let _x: Box<Bar>;
59   |                 ^^^
60   |
61   = help: `Bar` is a function item, not a type
62   = help: function item types cannot be named directly
63
64error: aborting due to 4 previous errors
65
66Some errors have detailed explanations: E0412, E0423, E0425, E0747.
67For more information about an error, try `rustc --explain E0412`.
68