mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
21 lines
544 B
Rust
21 lines
544 B
Rust
use prelude::*; //~ ERROR unresolved import `prelude`
|
|
|
|
mod unresolved_env {
|
|
use env; //~ ERROR unresolved import `env`
|
|
|
|
include!(concat!(env!("NON_EXISTENT"), "/data.rs"));
|
|
//~^ ERROR cannot determine resolution for the macro `env`
|
|
}
|
|
|
|
mod nonexistent_env {
|
|
include!(concat!(env!("NON_EXISTENT"), "/data.rs"));
|
|
//~^ ERROR environment variable `NON_EXISTENT` not defined
|
|
}
|
|
|
|
mod erroneous_literal {
|
|
include!(concat!("NON_EXISTENT"suffix, "/data.rs"));
|
|
//~^ ERROR suffixes on string literals are invalid
|
|
}
|
|
|
|
fn main() {}
|