]> git.lizzy.rs Git - rust.git/blob - tests/ui/extenv/issue-55897.rs
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[rust.git] / tests / ui / extenv / issue-55897.rs
1 use prelude::*; //~ ERROR unresolved import `prelude`
2
3 mod unresolved_env {
4     use env; //~ ERROR unresolved import `env`
5
6     include!(concat!(env!("NON_EXISTENT"), "/data.rs"));
7     //~^ ERROR cannot determine resolution for the macro `env`
8 }
9
10 mod nonexistent_env {
11     include!(concat!(env!("NON_EXISTENT"), "/data.rs"));
12     //~^ ERROR environment variable `NON_EXISTENT` not defined
13 }
14
15 mod erroneous_literal {
16     include!(concat!("NON_EXISTENT"suffix, "/data.rs"));
17     //~^ ERROR suffixes on string literals are invalid
18 }
19
20 fn main() {}