about summary refs log tree commit diff
path: root/src/test/compile-fail/extenv-not-defined-default.rs
AgeCommit message (Collapse)AuthorLines
2018-08-14Moved compile-fail tests to ui tests.David Wood-14/+0
2014-02-07Added tests to make tidyDerek Guenther-1/+4
2014-01-10rustc: Fix formatting of env! error messageBrian Anderson-1/+1
Death to caps.
2013-08-08env! syntax extension changesSteven Fackler-0/+11
env! aborts compilation of the specified environment variable is not defined and takes an optional second argument containing a custom error message. option_env! creates an Option<&'static str> containing the value of the environment variable. There are no run-pass tests that check the behavior when the environment variable is defined since the test framework doesn't support setting environment variables at compile time as opposed to runtime. However, both env! and option_env! are used inside of rustc itself, which should act as a sufficient test. Close #2248