We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2c0f29 commit d26e01eCopy full SHA for d26e01e
src/test/ui/macros/issue-86082-option-env-invalid-char.rs
@@ -0,0 +1,10 @@
1
+// check-pass
2
+//
3
+// Regression test for issue #86082
4
5
+// Checks that option_env! does not panic on receiving an invalid
6
+// environment variable name.
7
+
8
+fn main() {
9
+ option_env!("\0=");
10
+}
0 commit comments