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

10 lines
262 B
Rust

// run-pass
// rustc-env:MY_VAR=tadam
// compile-flags: --env MY_VAR=123abc -Zunstable-options
// This test ensures that variables provided with `--env` take precedence over
// variables from environment.
fn main() {
assert_eq!(env!("MY_VAR"), "123abc");
}