]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/nested-in-impl.rs
Rollup merge of #63604 - Wind-River:master, r=alexcrichton
[rust.git] / src / test / ui / async-await / nested-in-impl.rs
1 // Test that async fn works when nested inside of
2 // impls with lifetime parameters.
3 //
4 // check-pass
5 // edition:2018
6
7 #![feature(async_await)]
8
9 struct Foo<'a>(&'a ());
10
11 impl<'a> Foo<'a> {
12     fn test() {
13         async fn test() {}
14     }
15 }
16
17 fn main() { }