|
error[E0573]: expected type, found function `Bar`
- --> $DIR/privacy-ns2.rs:47:17
+ --> $DIR/privacy-ns2.rs:42:14
+ |
+LL | let _x : Bar();
+ | ^^^^^ not a type
+ |
+help: use `=` if you meant to assign
+ |
+LL | let _x = Bar();
+ | ^
+help: possible better candidates are found in other modules, you can import them into scope
+ |
+LL | use foo1::Bar;
+ |
+LL | use foo2::Bar;
+ |
+LL | use foo3::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>;
| ^^^
|