diff options
Diffstat (limited to 'tests/ui/async-await/async-closures/higher-ranked.rs')
| -rw-r--r-- | tests/ui/async-await/async-closures/higher-ranked.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/ui/async-await/async-closures/higher-ranked.rs b/tests/ui/async-await/async-closures/higher-ranked.rs index f0bdcf691ae..5bbcc7041a8 100644 --- a/tests/ui/async-await/async-closures/higher-ranked.rs +++ b/tests/ui/async-await/async-closures/higher-ranked.rs @@ -1,12 +1,10 @@ // edition:2021 +// check-pass #![feature(async_closure)] fn main() { let x = async move |x: &str| { - //~^ ERROR lifetime may not live long enough - // This error is proof that the `&str` type is higher-ranked. - // This won't work until async closures are fully impl'd. println!("{x}"); }; } |
