Sign in
fuchsia
/
third_party
/
rust
/
7bade6ef730cff83f3591479a98916920f66decd
/
.
/
src
/
test
/
ui
/
closures
/
closure-return-type-mismatch.rs
blob: 1631bb303e54e0c702f88acdb8947d618c16d267 [
file
] [
log
] [
blame
]
fn
main
()
{
||
{
if
false
{
return
"test"
;
}
let
a
=
true
;
a
//~ ERROR mismatched types
};
||
->
bool
{
if
false
{
return
"hello"
//~ ERROR mismatched types
};
let
b
=
true
;
b
};
}