2018-12-29 21:56:55 +00:00
|
|
|
use prelude::*; //~ ERROR unresolved import `prelude`
|
|
|
|
|
|
|
|
mod unresolved_env {
|
2019-09-01 07:01:25 +00:00
|
|
|
use env; //~ ERROR unresolved import `env`
|
2018-12-29 21:56:55 +00:00
|
|
|
|
|
|
|
include!(concat!(env!("NON_EXISTENT"), "/data.rs"));
|
|
|
|
}
|
|
|
|
|
|
|
|
mod nonexistent_env {
|
|
|
|
include!(concat!(env!("NON_EXISTENT"), "/data.rs"));
|
|
|
|
//~^ ERROR environment variable `NON_EXISTENT` not defined
|
|
|
|
}
|
|
|
|
|
2019-06-07 09:53:33 +00:00
|
|
|
mod erroneous_literal {
|
|
|
|
include!(concat!("NON_EXISTENT"suffix, "/data.rs"));
|
2022-09-15 08:12:09 +00:00
|
|
|
//~^ ERROR suffixes on string literals are invalid
|
2019-06-07 09:53:33 +00:00
|
|
|
}
|
|
|
|
|
2018-12-29 21:56:55 +00:00
|
|
|
fn main() {}
|