Sign in
fuchsia
/
third_party
/
rust
/
87ef96d3946ed4add766c0a2cd72d8443e92e4a0
/
.
/
src
/
test
/
ui
/
return
/
return-from-diverging.rs
blob: faeccaace6987fe86911190e816ec911b870bcb2 [
file
] [
log
] [
blame
]
// Test that return another type in place of ! raises a type mismatch.
fn
fail
()
->
!
{
return
"wow"
;
//~ ERROR mismatched types
}
fn
main
()
{
}