Sign in
fuchsia
/
third_party
/
rust
/
19e69b76c546871001e16464ebdcaaf5bf320da5
/
.
/
tests
/
ui
/
async-await
/
dont-ice-for-type-mismatch-in-closure-in-async.rs
blob: 8ad99a4c201679a5733d34d11822838b9b4d84ef [
file
] [
log
] [
blame
]
//@ edition: 2021
fn
call
(
_
:
impl
Fn
()
->
bool
)
{}
async
fn
test
()
{
call
(||
->
Option
<()>
{
//~^ ERROR expected
if
true
{
false
//~^ ERROR mismatched types
}
true
//~^ ERROR mismatched types
})
}
fn
main
()
{}