]> git.lizzy.rs Git - rust.git/blob - tests/ui/rfc-2126-extern-absolute-paths/single-segment.rs
Auto merge of #106458 - albertlarsan68:move-tests, r=jyn514
[rust.git] / tests / ui / rfc-2126-extern-absolute-paths / single-segment.rs
1 // aux-build:xcrate.rs
2 // compile-flags:--extern xcrate
3 // edition:2018
4
5 use crate; //~ ERROR crate root imports need to be explicitly named: `use crate as name;`
6 use *; //~ ERROR cannot glob-import all possible crates
7
8 fn main() {
9     let s = ::xcrate; //~ ERROR expected value, found crate `xcrate`
10                       //~^ NOTE not a value
11 }