Skip to content

Commit

Permalink
Rollup merge of rust-lang#109940 - JohnTitor:issue-93911, r=compiler-…
Browse files Browse the repository at this point in the history
…errors

Add regression test for rust-lang#93911

r? `@compiler-errors`
Closes rust-lang#93911
  • Loading branch information
compiler-errors authored Apr 4, 2023
2 parents b0483e8 + 1a8612e commit 678d7c5
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/ui/lifetimes/issue-93911.rs
Original file line number Diff line number Diff line change
@@ -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() {}

0 comments on commit 678d7c5

Please sign in to comment.