Skip to content

Commit 1a8612e

Browse files
committed
Add regression test for #93911
Signed-off-by: Yuki Okushi <[email protected]>
1 parent be8e5ba commit 1a8612e

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

tests/ui/lifetimes/issue-93911.rs

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// check-pass
2+
// edition:2021
3+
4+
#![allow(dead_code)]
5+
6+
struct Foo<'a>(&'a u32);
7+
8+
impl<'a> Foo<'a> {
9+
async fn foo() {
10+
struct Bar<'b>(&'b u32);
11+
12+
impl<'b> Bar<'b> {
13+
async fn bar() {}
14+
}
15+
}
16+
}
17+
18+
fn main() {}

0 commit comments

Comments
 (0)