]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/async-fn-elided-impl-lifetime-parameter.rs
add edition to regression test
[rust.git] / src / test / ui / async-await / async-fn-elided-impl-lifetime-parameter.rs
1 // Check that `async fn` inside of an impl with `'_`
2 // in the header compiles correctly.
3 //
4 // Regression test for #63500.
5 //
6 // check-pass
7 // edition:2018
8
9 #![feature(async_await)]
10
11 struct Foo<'a>(&'a u8);
12
13 impl Foo<'_> {
14     async fn bar() {}
15 }
16
17 fn main() { }