Add regression test for #93911
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
This commit is contained in:
parent
be8e5ba157
commit
1a8612e723
1 changed files with 18 additions and 0 deletions
18
tests/ui/lifetimes/issue-93911.rs
Normal file
18
tests/ui/lifetimes/issue-93911.rs
Normal file
|
@ -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() {}
|
Loading…
Add table
Add a link
Reference in a new issue