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
171 B
Rust
Raw Normal View History

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