blob: d73558d8271d2c01dc5e85e352f37e24cac751fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
//@ aux-build:xcrate.rs
//@ compile-flags:--extern xcrate
//@ edition:2018
use crate; //~ ERROR crate root imports need to be explicitly named: `use crate as name;`
use *; //~ ERROR cannot glob-import all possible crates
fn main() {
let s = ::xcrate; //~ ERROR expected value, found crate `xcrate`
//~^ NOTE not a value
}
|