2018-12-29 15:56:55 -06:00
|
|
|
use prelude::*; //~ ERROR unresolved import `prelude`
|
|
|
|
|
|
|
|
mod unresolved_env {
|
2019-09-01 02:01:25 -05:00
|
|
|
use env; //~ ERROR unresolved import `env`
|
2018-12-29 15:56:55 -06:00
|
|
|
|
|
|
|
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"));
|
2022-09-15 03:12:09 -05:00
|
|
|
//~^ ERROR suffixes on string literals are invalid
|
2019-06-07 04:53:33 -05:00
|
|
|
}
|
|
|
|
|
2018-12-29 15:56:55 -06:00
|
|
|
fn main() {}
|