Skip to content

Commit 678d7c5

Browse files
Rollup merge of #109940 - JohnTitor:issue-93911, r=compiler-errors
Add regression test for #93911 r? `@compiler-errors` Closes #93911
2 parents b0483e8 + 1a8612e commit 678d7c5

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)