2018-12-29 15:56:55 -06:00
|
|
|
use prelude::*; //~ ERROR unresolved import `prelude`
|
|
|
|
|
|
|
|
mod unresolved_env {
|
|
|
|
use 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
|
|
|
|
}
|
|
|
|
|
2019-06-07 04:53:33 -05:00
|
|
|
mod erroneous_literal {
|
|
|
|
include!(concat!("NON_EXISTENT"suffix, "/data.rs"));
|
|
|
|
//~^ ERROR suffixes on a string literal are invalid
|
|
|
|
}
|
|
|
|
|
2018-12-29 15:56:55 -06:00
|
|
|
fn main() {}
|