2018-08-08 14:50:16 +02:00
|
|
|
error: crate root imports need to be explicitly named: `use crate as name;`
|
2018-08-24 18:51:32 +03:00
|
|
|
--> $DIR/single-segment.rs:15:5
|
2018-08-08 14:50:16 +02:00
|
|
|
|
|
|
|
|
LL | use crate; //~ ERROR crate root imports need to be explicitly named: `use crate as name;`
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: cannot glob-import all possible crates
|
2018-08-24 18:51:32 +03:00
|
|
|
--> $DIR/single-segment.rs:16:5
|
2018-08-08 14:50:16 +02:00
|
|
|
|
|
|
|
|
LL | use *; //~ ERROR cannot glob-import all possible crates
|
|
|
|
| ^
|
|
|
|
|
|
|
|
error[E0423]: expected value, found module `xcrate`
|
2018-08-24 18:51:32 +03:00
|
|
|
--> $DIR/single-segment.rs:19:13
|
2018-08-08 14:50:16 +02:00
|
|
|
|
|
|
|
|
LL | let s = ::xcrate; //~ ERROR expected value, found module `xcrate`
|
|
|
|
| ^^^^^^^^ not a value
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0423`.
|