Rollup merge of #109940 - JohnTitor:issue-93911, r=compiler-errors
Add regression test for #93911 r? `@compiler-errors` Closes #93911
This commit is contained in:
commit
678d7c505d
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…
x
Reference in New Issue
Block a user