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