summaryrefslogtreecommitdiffstats
path: root/src/test/ui/extoption_env-not-defined.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/extoption_env-not-defined.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/ui/extoption_env-not-defined.rs b/src/test/ui/extoption_env-not-defined.rs
new file mode 100644
index 000000000..4014902ff
--- /dev/null
+++ b/src/test/ui/extoption_env-not-defined.rs
@@ -0,0 +1,5 @@
+// run-pass
+
+pub fn main() {
+ assert!(option_env!("__HOPEFULLY_DOESNT_EXIST__").is_none());
+}