]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/nested-in-impl.rs
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_clif-2022-07-26
[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 struct Foo<'a>(&'a ());
8
9 impl<'a> Foo<'a> {
10     fn test() {
11         async fn test() {}
12     }
13 }
14
15 fn main() { }