Sign in
android
/
toolchain
/
rustc
/
8cd2c99adac39159d0aec69f57fb5ce6634f8b5a
/
.
/
src
/
test
/
run-fail
/
call-fn-never-arg.rs
blob: f5b2cfaefe02274f7c0abe50306e603994e645eb [
file
] [
log
] [
blame
]
// Test that we can use a ! for an argument of type !
// error-pattern:wowzers!
#![
feature
(
never_type
)]
#![
allow
(
unreachable_code
)]
fn
foo
(
x
:
!)
->
!
{
x
}
fn
main
()
{
foo
(
panic
!(
"wowzers!"
))
}