Sign in
fuchsia
/
third_party
/
rust
/
a9aa2dfe844840a7e414873ce55ef9d02f1038a7
/
.
/
src
/
test
/
ui
/
never_type
/
call-fn-never-arg.rs
blob: 9d355817ee80dc459ad86ebfce4f4a79d3d194ff [
file
] [
log
] [
blame
]
// Test that we can use a ! for an argument of type !
// check-pass
#![
feature
(
never_type
)]
#![
allow
(
unreachable_code
)]
fn
foo
(
x
:
!)
->
!
{
x
}
fn
main
()
{
foo
(
panic
!(
"wowzers!"
))
}