rust/tests/ui/async-await/async-fn-elided-impl-lifetime-parameter.rs

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

16 lines
237 B
Rust
Raw Normal View History

// Check that `async fn` inside of an impl with `'_`
// in the header compiles correctly.
//
// Regression test for #63500.
//
// check-pass
2019-08-12 22:33:53 +00:00
// edition:2018
struct Foo<'a>(&'a u8);
impl Foo<'_> {
async fn bar() {}
}
fn main() { }