summary refs log tree commit diff
path: root/src/test/ui/extenv/issue-55897.rs
blob: bd151c8a4e4e7717edc7115b8eaad6ff8d96ed69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
}

fn main() {}