-error[E0423]: expected function, found trait `Bar`
+error[E0423]: expected function, tuple struct or tuple variant, found trait `Bar`
--> $DIR/privacy-ns2.rs:20:5
|
LL | Bar();
- | ^^^ not a function
+ | ^^^ not a function, tuple struct or tuple variant
|
help: possible better candidates are found in other modules, you can import them into scope
|
LL | use foo3::Bar;
|
-error[E0423]: expected function, found trait `Bar`
+error[E0423]: expected function, tuple struct or tuple variant, found trait `Bar`
--> $DIR/privacy-ns2.rs:26:5
|
+LL | pub struct Baz;
+ | --------------- similarly named unit struct `Baz` defined here
+...
LL | Bar();
| ^^^
|
error[E0573]: expected type, found function `Bar`
--> $DIR/privacy-ns2.rs:48:17
|
+LL | pub struct Baz;
+ | --------------- similarly named struct `Baz` defined here
+...
LL | let _x: Box<Bar>;
| ^^^
|