rust/tests/ui/macros/builtin-env-issue-114010.rs
David Wood 75df62d4a2
builtin_macros: raw str in diagnostic output
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>
2023-07-25 11:12:52 +01:00

11 lines
238 B
Rust

// unset-rustc-env:oopsie
// unset-rustc-env:a""a
env![r#"oopsie"#];
//~^ ERROR environment variable `oopsie` not defined at compile time
env![r#"a""a"#];
//~^ ERROR environment variable `a""a` not defined at compile time
fn main() {}