blob: 8ea32f36f9e7a9fb9442b1a87448d99e45bc8984 [file] [log] [blame]
error[E0423]: expected function, found trait `Bar`
--> $DIR/privacy-ns2.rs:20:5
|
LL | Bar();
| ^^^ not a function
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[E0423]: expected function, found trait `Bar`
--> $DIR/privacy-ns2.rs:26:5
|
LL | Bar();
| ^^^
help: a unit struct with a similar name exists
|
LL | Baz();
| ^^^
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:41:18
|
LL | let _x : Box<Bar>;
| ^^^ not a type
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:47:17
|
LL | let _x: Box<Bar>;
| ^^^
help: a struct with a similar name exists
|
LL | let _x: Box<Baz>;
| ^^^
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[E0603]: trait `Bar` is private
--> $DIR/privacy-ns2.rs:60:15
|
LL | use foo3::Bar;
| ^^^
error[E0603]: trait `Bar` is private
--> $DIR/privacy-ns2.rs:64:15
|
LL | use foo3::Bar;
| ^^^
error[E0603]: trait `Bar` is private
--> $DIR/privacy-ns2.rs:71:16
|
LL | use foo3::{Bar,Baz};
| ^^^
error: aborting due to 7 previous errors
Some errors have detailed explanations: E0423, E0603.
For more information about an error, try `rustc --explain E0423`.