mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
Add regression test for #93911
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
This commit is contained in:
parent
be8e5ba157
commit
1a8612e723
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…
Reference in New Issue
Block a user