fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
1.1 KiB38 linesraw
1error: environment variable `NON_EXISTENT` not defined
2  --> $DIR/issue-55897.rs:11:22
3   |
4LL |     include!(concat!(env!("NON_EXISTENT"), "/data.rs"));
5   |                      ^^^^^^^^^^^^^^^^^^^^
6
7error: suffixes on a string literal are invalid
8  --> $DIR/issue-55897.rs:16:22
9   |
10LL |     include!(concat!("NON_EXISTENT"suffix, "/data.rs"));
11   |                      ^^^^^^^^^^^^^^^^^^^^ invalid suffix `suffix`
12
13error[E0432]: unresolved import `prelude`
14  --> $DIR/issue-55897.rs:1:5
15   |
16LL | use prelude::*;
17   |     ^^^^^^^
18   |     |
19   |     unresolved import
20   |     help: a similar path exists: `std::prelude`
21
22error[E0432]: unresolved import `env`
23  --> $DIR/issue-55897.rs:4:9
24   |
25LL |     use env;
26   |         ^^^ no `env` in the root
27
28error: cannot determine resolution for the macro `env`
29  --> $DIR/issue-55897.rs:6:22
30   |
31LL |     include!(concat!(env!("NON_EXISTENT"), "/data.rs"));
32   |                      ^^^
33   |
34   = note: import resolution is stuck, try simplifying macro imports
35
36error: aborting due to 5 previous errors
37
38For more information about this error, try `rustc --explain E0432`.