mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
12 lines
350 B
Rust
12 lines
350 B
Rust
//@ 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
|
|
}
|