Rollup merge of #109940 - JohnTitor:issue-93911, r=compiler-errors

Add regression test for #93911

r? `@compiler-errors`
Closes #93911
This commit is contained in:
Michael Goulet 2023-04-04 09:27:48 -07:00 committed by GitHub
commit 678d7c505d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,18 @@
// check-pass
// edition:2021
#![allow(dead_code)]
struct Foo<'a>(&'a u32);
impl<'a> Foo<'a> {
async fn foo() {
struct Bar<'b>(&'b u32);
impl<'b> Bar<'b> {
async fn bar() {}
}
}
}
fn main() {}