rust/tests/ui/async-await/async-fn-elided-impl-lifetime-parameter.rs
2024-02-16 20:02:50 +00:00

16 lines
239 B
Rust

// Check that `async fn` inside of an impl with `'_`
// in the header compiles correctly.
//
// Regression test for #63500.
//
//@ check-pass
//@ edition:2018
struct Foo<'a>(&'a u8);
impl Foo<'_> {
async fn bar() {}
}
fn main() { }