Skip to content

Commit d26e01e

Browse files
Add test to prevent regression
1 parent f2c0f29 commit d26e01e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)