]> git.proxmox.com Git - rustc.git/blame - src/test/ui/async-await/nested-in-impl.rs
New upstream version 1.65.0+dfsg1
[rustc.git] / src / test / ui / async-await / nested-in-impl.rs
CommitLineData
e1599b0c
XL
1// Test that async fn works when nested inside of
2// impls with lifetime parameters.
3//
4// check-pass
5// edition:2018
6
7struct Foo<'a>(&'a ());
8
9impl<'a> Foo<'a> {
10 fn test() {
11 async fn test() {}
12 }
13}
14
15fn main() { }