1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
// 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() { }