mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
18 lines
244 B
Rust
18 lines
244 B
Rust
//@ 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() {}
|