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