Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
macros
/
issue-86082-option-env-invalid-char.rs
blob: 5d24ad2dcad9f72eccd2171de35101cf7b30565d [
file
] [
log
] [
blame
] [
edit
]
//@ 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="
);
}