2024-02-16 14:02:50 -06:00
|
|
|
//@ run-pass
|
|
|
|
//@ rustc-env:MY_VAR=tadam
|
|
|
|
//@ compile-flags: --env-set MY_VAR=123abc -Zunstable-options
|
2023-11-27 06:47:43 -06:00
|
|
|
|
|
|
|
// This test ensures that variables provided with `--env` take precedence over
|
|
|
|
// variables from environment.
|
|
|
|
fn main() {
|
|
|
|
assert_eq!(env!("MY_VAR"), "123abc");
|
|
|
|
}
|