mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 10:13:54 +00:00
75df62d4a2
If a raw string was used in the `env!` invocation, then it should also be shown in the diagnostic messages as a raw string. Signed-off-by: David Wood <david@davidtw.co>
21 lines
750 B
Plaintext
21 lines
750 B
Plaintext
error: environment variable `oopsie` not defined at compile time
|
|
--> $DIR/builtin-env-issue-114010.rs:4:1
|
|
|
|
|
LL | env![r#"oopsie"#];
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: use `std::env::var(r#"oopsie"#)` to read the variable at run time
|
|
= note: this error originates in the macro `env` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: environment variable `a""a` not defined at compile time
|
|
--> $DIR/builtin-env-issue-114010.rs:7:1
|
|
|
|
|
LL | env![r#"a""a"#];
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
= help: use `std::env::var(r#"a""a"#)` to read the variable at run time
|
|
= note: this error originates in the macro `env` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: aborting due to 2 previous errors
|
|
|