rust/tests/ui/macros/issue-86082-option-env-invalid-char.rs
2023-01-11 09:32:08 +00:00

11 lines
191 B
Rust

// check-pass
//
// Regression test for issue #86082
//
// Checks that option_env! does not panic on receiving an invalid
// environment variable name.
fn main() {
option_env!("\0=");
}