summaryrefslogtreecommitdiffstats
path: root/tests/ui/extoption_env-no-args.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/extoption_env-no-args.stderr')
-rw-r--r--tests/ui/extoption_env-no-args.stderr8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/extoption_env-no-args.stderr b/tests/ui/extoption_env-no-args.stderr
new file mode 100644
index 000000000..65067942b
--- /dev/null
+++ b/tests/ui/extoption_env-no-args.stderr
@@ -0,0 +1,8 @@
+error: option_env! takes 1 argument
+ --> $DIR/extoption_env-no-args.rs:1:13
+ |
+LL | fn main() { option_env!(); }
+ | ^^^^^^^^^^^^^
+
+error: aborting due to previous error
+