Skip to content

Commit

Permalink
Add regression test for rust-lang#93911
Browse files Browse the repository at this point in the history
Signed-off-by: Yuki Okushi <[email protected]>
  • Loading branch information
JohnTitor committed Apr 4, 2023
1 parent be8e5ba commit 1a8612e
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 1a8612e

Please sign in to comment.