Sign in
fuchsia
/
third_party
/
rust
/
87ef96d3946ed4add766c0a2cd72d8443e92e4a0
/
.
/
src
/
test
/
ui
/
call-fn-never-arg-wrong-type.rs
blob: 7ed1162171f1c8b3487f642bbd0e322a84fe9d83 [
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
}