rustc/tests/ui/async-await/nested-in-impl.rs
2023-08-02 10:33:26 +02:00

16 lines
229 B
Rust

// Test that async fn works when nested inside of
// impls with lifetime parameters.
//
// check-pass
// edition:2018
struct Foo<'a>(&'a ());
impl<'a> Foo<'a> {
fn test() {
async fn test() {}
}
}
fn main() { }