Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
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
()
{
}