about summary refs log tree commit diff
path: root/tests/ui/async-await/unconstrained-lifetimes.rs
blob: 50ab7bae73d4fc26f1f6b2b72564e6108f3eed30 (plain)
1
2
3
4
5
6
7
8
9
//@ 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() {}