rust/src/test/ui/rfc-2126-extern-absolute-paths/single-segment.stderr

22 lines
697 B
Plaintext
Raw Normal View History

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
|
LL | use crate; //~ ERROR crate root imports need to be explicitly named: `use crate as name;`
| ^^^^^
error: cannot glob-import all possible crates
2018-12-25 09:56:47 -06:00
--> $DIR/single-segment.rs:6:5
|
LL | use *; //~ ERROR cannot glob-import all possible crates
| ^
error[E0423]: expected value, found module `xcrate`
2018-12-25 09:56:47 -06:00
--> $DIR/single-segment.rs:9:13
|
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`.