]> git.proxmox.com Git - rustc.git/blob - src/test/ui/async-await/nested-in-impl.rs
Update upstream source from tag 'upstream/1.39.0+dfsg1'
[rustc.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() { }