Sign in
fuchsia
/
third_party
/
rust
/
2dafa91310354fdca43211434878b329c0535f46
/
.
/
src
/
test
/
ui
/
call-fn-never-arg-wrong-type.rs
blob: d06637e74a2f26b9da61b538f2f89c8d0eead623 [
file
] [
log
] [
blame
]
// Test that we can't pass other types for !
#![
feature
(
never_type
)]
fn
foo
(
x
:
!)
->
!
{
x
}
fn
main
()
{
foo
(
"wow"
);
//~ ERROR mismatched types
}