1
Fork 0
rust/tests/ui/extenv/extenv-not-env.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
169 B
Rust
Raw Normal View History

2023-11-27 13:47:43 +01:00
// run-pass
// rustc-env:MY_ENV=/
// Ensures that variables not defined through `--env-set` are still available.
2023-11-27 13:47:43 +01:00
fn main() {
assert!(!env!("MY_ENV").is_empty());
}