Sign in
fuchsia
/
third_party
/
rust
/
31f5d69ba4f4d78740190a08ea097b41b00d96cb
/
.
/
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
}