2018-08-08 07:50:16 -05:00
|
|
|
error: crate root imports need to be explicitly named: `use crate as name;`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/single-segment.rs:5:5
|
2018-08-08 07:50:16 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | use crate;
|
2018-08-08 07:50:16 -05:00
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: cannot glob-import all possible crates
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/single-segment.rs:6:5
|
2018-08-08 07:50:16 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | use *;
|
2018-08-08 07:50:16 -05:00
|
|
|
| ^
|
|
|
|
|
2019-08-03 18:07:35 -05:00
|
|
|
error[E0423]: expected value, found crate `xcrate`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/single-segment.rs:9:13
|
2018-08-08 07:50:16 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | let s = ::xcrate;
|
2018-08-08 07:50:16 -05:00
|
|
|
| ^^^^^^^^ not a value
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0423`.
|