mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-15 01:55:03 +00:00
1a8612e723
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
19 lines
242 B
Rust
19 lines
242 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() {}
|