Sign in
fuchsia
/
third_party
/
rust
/
1dc13b5904cde9279b76909013cd40e1661fe8eb
/
.
/
src
/
test
/
ui
/
return
/
return-unit-from-diverging.rs
blob: 31a13784b478d3213628601078239bd3645a6d1b [
file
] [
log
] [
blame
]
// Test that we get the usual error that we'd get for any other return type and not something about
// diverging functions not being able to return.
fn
fail
()
->
!
{
return
;
//~ ERROR in a function whose return type is not
}
fn
main
()
{
}