rust/tests/ui/lifetimes/issue-93911.rs
Yuki Okushi 1a8612e723
Add regression test for #93911
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
2023-04-05 01:01:45 +09:00

19 lines
242 B
Rust

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