1 // Compiletest meta test checking that rustc-env and unset-rustc-env directives
2 // can be used to configure environment for rustc.
6 // rustc-env:COMPILETEST_FOO=foo
8 // An environment variable that is likely to be set, but should be safe to unset.
14 assert_eq!(env!("COMPILETEST_FOO"), "foo");
15 assert_eq!(option_env!("COMPILETEST_BAR"), None);
16 assert_eq!(option_env!("PWD"), None);