]> git.lizzy.rs Git - rust.git/blob - tests/ui/async-await/nested-in-impl.rs
Rollup merge of #107027 - GuillaumeGomez:rm-extra-removal, r=tmiasko
[rust.git] / tests / 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() { }