2019-10-14 19:20:50 -05:00
|
|
|
error[E0423]: expected function, tuple struct or tuple variant, 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();
|
2019-10-14 19:20:50 -05:00
|
|
|
| ^^^ not a function, tuple struct or tuple variant
|
2019-10-24 00:20:58 -05: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;
|
|
|
|
|
|
|
|
|
|
2019-10-14 19:20:50 -05:00
|
|
|
error[E0423]: expected function, tuple struct or tuple variant, 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-10-14 19:20:50 -05:00
|
|
|
LL | pub struct Baz;
|
|
|
|
| --------------- similarly named unit struct `Baz` defined here
|
|
|
|
...
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | Bar();
|
2019-01-09 13:11:00 -06:00
|
|
|
| ^^^
|
2019-10-24 00:20:58 -05:00
|
|
|
|
|
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`
|
2019-11-18 13:57:46 -06:00
|
|
|
--> $DIR/privacy-ns2.rs:43:14
|
2019-10-19 12:13:56 -05:00
|
|
|
|
|
|
|
|
LL | let _x : Bar();
|
|
|
|
| ^^^^^ not a type
|
2019-10-26 17:34:28 -05:00
|
|
|
|
|
2019-10-19 12:13:56 -05:00
|
|
|
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;
|
|
|
|
|
|
|
|
|
|
2018-08-08 07:28:26 -05:00
|
|
|
error[E0603]: trait `Bar` is private
|
2019-11-18 13:57:46 -06:00
|
|
|
--> $DIR/privacy-ns2.rs:63: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
|
2019-11-18 13:57:46 -06:00
|
|
|
--> $DIR/privacy-ns2.rs:67: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
|
2019-11-18 13:57:46 -06:00
|
|
|
--> $DIR/privacy-ns2.rs:74: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
|
|
|
| ^^^
|
|
|
|
|
2019-11-18 13:57:46 -06:00
|
|
|
error[E0107]: wrong number of const arguments: expected 0, found 1
|
|
|
|
--> $DIR/privacy-ns2.rs:41:18
|
|
|
|
|
|
|
|
|
LL | let _x : Box<Bar>;
|
|
|
|
| ^^^ unexpected const argument
|
|
|
|
|
|
|
|
error[E0107]: wrong number of type arguments: expected 1, found 0
|
|
|
|
--> $DIR/privacy-ns2.rs:41:14
|
|
|
|
|
|
|
|
|
LL | let _x : Box<Bar>;
|
|
|
|
| ^^^^^^^^ expected 1 type argument
|
|
|
|
|
|
|
|
error[E0107]: wrong number of const arguments: expected 0, found 1
|
|
|
|
--> $DIR/privacy-ns2.rs:49:17
|
|
|
|
|
|
|
|
|
LL | let _x: Box<Bar>;
|
|
|
|
| ^^^ unexpected const argument
|
|
|
|
|
|
|
|
error[E0107]: wrong number of type arguments: expected 1, found 0
|
|
|
|
--> $DIR/privacy-ns2.rs:49:13
|
|
|
|
|
|
|
|
|
LL | let _x: Box<Bar>;
|
|
|
|
| ^^^^^^^^ expected 1 type argument
|
|
|
|
|
|
|
|
error: aborting due to 10 previous errors
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2019-11-18 13:57:46 -06:00
|
|
|
Some errors have detailed explanations: E0107, E0423, E0573, E0603.
|
|
|
|
For more information about an error, try `rustc --explain E0107`.
|