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-ns1.rs:20:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | Bar(); //~ ERROR expected function, found trait `Bar`
|
2019-01-09 13:11:00 -06:00
|
|
|
| ^^^
|
|
|
|
help: a unit struct with a similar name exists
|
|
|
|
|
|
|
|
|
LL | Baz(); //~ ERROR expected function, found trait `Bar`
|
|
|
|
| ^^^
|
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-ns1.rs:35:17
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | let _x: Box<Bar>; //~ ERROR expected type, found function `Bar`
|
2019-01-09 13:11:00 -06:00
|
|
|
| ^^^
|
|
|
|
help: a struct with a similar name exists
|
|
|
|
|
|
|
|
|
LL | let _x: Box<Baz>; //~ ERROR expected type, found function `Bar`
|
|
|
|
| ^^^
|
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[E0425]: cannot find function `Bar` in this scope
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/privacy-ns1.rs:50:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | Bar(); //~ ERROR cannot find function `Bar` in this scope
|
2019-01-09 13:11:00 -06:00
|
|
|
| ^^^
|
|
|
|
help: a unit struct with a similar name exists
|
|
|
|
|
|
|
|
|
LL | Baz(); //~ ERROR cannot find function `Bar` in this scope
|
|
|
|
| ^^^
|
2018-08-08 07:28:26 -05:00
|
|
|
help: possible 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[E0412]: cannot find type `Bar` in this scope
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/privacy-ns1.rs:51:17
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | let _x: Box<Bar>; //~ ERROR cannot find type `Bar` in this scope
|
2019-01-09 13:11:00 -06:00
|
|
|
| ^^^
|
|
|
|
help: a struct with a similar name exists
|
|
|
|
|
|
|
|
|
LL | let _x: Box<Baz>; //~ ERROR cannot find type `Bar` in this scope
|
|
|
|
| ^^^
|
2018-08-08 07:28:26 -05:00
|
|
|
help: possible 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: aborting due to 4 previous errors
|
|
|
|
|
|
|
|
Some errors occurred: E0412, E0423, E0425, E0573.
|
|
|
|
For more information about an error, try `rustc --explain E0412`.
|