Sign in
rust
/
rust-lang
/
rust
/
refs/heads/perf-tmp
/
.
/
tests
/
ui
/
async-await
/
unconstrained-lifetimes.rs
blob: 50ab7bae73d4fc26f1f6b2b72564e6108f3eed30 [
file
] [
log
] [
blame
]
//@ edition: 2021
// Make sure we don't complain about the implicit `-> impl Future` capturing an
// unconstrained anonymous lifetime.
async
fn
foo
(
_
:
Missing
<
'
_
>)
{}
//~^ ERROR cannot find type `Missing` in this scope
fn
main
()
{}