2018-12-30 00:56:55 +03:00
|
|
|
use prelude::*; //~ ERROR unresolved import `prelude`
|
|
|
|
|
|
|
|
mod unresolved_env {
|
2019-09-01 00:01:25 -07:00
|
|
|
use env; //~ ERROR unresolved import `env`
|
2018-12-30 00:56:55 +03: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 12:53:33 +03:00
|
|
|
mod erroneous_literal {
|
|
|
|
include!(concat!("NON_EXISTENT"suffix, "/data.rs"));
|
2022-09-15 10:12:09 +02:00
|
|
|
//~^ ERROR suffixes on string literals are invalid
|
2019-06-07 12:53:33 +03:00
|
|
|
}
|
|
|
|
|
2018-12-30 00:56:55 +03:00
|
|
|
fn main() {}
|