rust/tests/ui/extenv/extenv-not-env.rs
2023-12-10 14:25:57 +01:00

8 lines
165 B
Rust

// run-pass
// rustc-env:MY_ENV=/
// Ensures that variables not defined through `--env` are still available.
fn main() {
assert!(!env!("MY_ENV").is_empty());
}