blob: b7533f41351da547ef1459befa9dfb057901e008 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
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() {}
|