mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
10 lines
269 B
Rust
10 lines
269 B
Rust
//@ run-pass
|
|
//@ rustc-env:MY_VAR=tadam
|
|
//@ compile-flags: --env-set 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");
|
|
}
|