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

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