mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
16 lines
231 B
Rust
16 lines
231 B
Rust
|
// Test that async fn works when nested inside of
|
||
|
// impls with lifetime parameters.
|
||
|
//
|
||
|
//@ check-pass
|
||
|
//@ edition:2018
|
||
|
|
||
|
struct Foo<'a>(&'a ());
|
||
|
|
||
|
impl<'a> Foo<'a> {
|
||
|
fn test() {
|
||
|
async fn test() {}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
fn main() { }
|