Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
async-await
/
async-borrowck-escaping-closure-error.rs
blob: e667b72aee530616b705ed4354b14c1cacba0a93 [
file
] [
log
] [
blame
]
// edition:2018
#![
feature
(
async_closure
)]
fn
foo
()
->
Box
<
dyn std
::
future
::
Future
<
Output
=
u32
>>
{
let
x
=
0u32
;
Box
::
new
((
async
||
x
)())
//~^ ERROR E0373
}
fn
main
()
{
}