Sign in
fuchsia
/
third_party
/
rust
/
aeb32f01b674e383d240b3a173d6d9bc29c7a6ad
/
.
/
src
/
test
/
ui
/
return
/
return-unit-from-diverging.rs
blob: 48417599b1d875962f4961d8402dbfebba86660d [
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
()
{
}