Sign in
fuchsia
/
third_party
/
rust
/
20d43d03dd27568f609d621ce44673393e838892
/
.
/
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!"
))
}