Sign in
fuchsia
/
third_party
/
rust
/
31f5d69ba4f4d78740190a08ea097b41b00d96cb
/
.
/
src
/
test
/
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
()
{
}