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