1 error[E0423]: expected function, found trait `Bar`
2 --> $DIR/privacy-ns1.rs:30:5
4 LL | Bar(); //~ ERROR expected function, found trait `Bar`
5 | ^^^ did you mean `Baz`?
6 help: possible better candidates are found in other modules, you can import them into scope
15 error[E0573]: expected type, found function `Bar`
16 --> $DIR/privacy-ns1.rs:45:17
18 LL | let _x: Box<Bar>; //~ ERROR expected type, found function `Bar`
19 | ^^^ did you mean `Baz`?
20 help: possible better candidates are found in other modules, you can import them into scope
29 error[E0425]: cannot find function `Bar` in this scope
30 --> $DIR/privacy-ns1.rs:60:5
32 LL | Bar(); //~ ERROR cannot find function `Bar` in this scope
33 | ^^^ did you mean `Baz`?
34 help: possible candidates are found in other modules, you can import them into scope
43 error[E0412]: cannot find type `Bar` in this scope
44 --> $DIR/privacy-ns1.rs:61:17
46 LL | let _x: Box<Bar>; //~ ERROR cannot find type `Bar` in this scope
47 | ^^^ did you mean `Baz`?
48 help: possible candidates are found in other modules, you can import them into scope
57 error: aborting due to 4 previous errors
59 Some errors occurred: E0412, E0423, E0425, E0573.
60 For more information about an error, try `rustc --explain E0412`.