Sign in
rust
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
return
/
return-from-diverging.rs
blob: 2ee48e7bc4762e6a55c50510ee09e906a8e53cde [
file
] [
log
] [
blame
]
// Test that return another type in place of ! raises a type mismatch.
fn
fail
()
->
!
{
return
"wow"
;
//~ ERROR mismatched types
}
fn
main
()
{
}