Add regression test for #93911

Signed-off-by: Yuki Okushi <jtitor@2k36.org>
This commit is contained in:
Yuki Okushi 2023-04-05 01:01:45 +09:00
parent be8e5ba157
commit 1a8612e723
No known key found for this signature in database

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() {}