rust/tests/ui/async-await/nested-in-impl.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
231 B
Rust
Raw Normal View History

// 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() { }