2018-08-08 07:28:26 -05:00
|
|
|
error[E0423]: expected function, found trait `Bar`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/privacy-ns2.rs:20:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | Bar();
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^ 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`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/privacy-ns2.rs:26:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | Bar();
|
2019-01-09 13:11:00 -06:00
|
|
|
| ^^^
|
|
|
|
help: a unit struct with a similar name exists
|
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | Baz();
|
2019-01-09 13:11:00 -06:00
|
|
|
| ^^^
|
2018-08-08 07:28:26 -05:00
|
|
|
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`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/privacy-ns2.rs:41:18
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | let _x : Box<Bar>;
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^ 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`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/privacy-ns2.rs:47:17
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | let _x: Box<Bar>;
|
2019-01-09 13:11:00 -06:00
|
|
|
| ^^^
|
|
|
|
help: a struct with a similar name exists
|
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | let _x: Box<Baz>;
|
2019-01-09 13:11:00 -06:00
|
|
|
| ^^^
|
2018-08-08 07:28:26 -05:00
|
|
|
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
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/privacy-ns2.rs:60:15
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | use foo3::Bar;
|
2018-10-27 12:21:34 -05:00
|
|
|
| ^^^
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0603]: trait `Bar` is private
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/privacy-ns2.rs:64:15
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | use foo3::Bar;
|
2018-10-27 12:21:34 -05:00
|
|
|
| ^^^
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error[E0603]: trait `Bar` is private
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/privacy-ns2.rs:71:16
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | use foo3::{Bar,Baz};
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: aborting due to 7 previous errors
|
|
|
|
|
2019-10-09 07:19:48 -05:00
|
|
|
Some errors have detailed explanations: E0423, E0573, E0603.
|
2018-08-08 07:28:26 -05:00
|
|
|
For more information about an error, try `rustc --explain E0423`.
|