]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/async-fn-elided-impl-lifetime-parameter.rs
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_clif-2022-07-26
[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 struct Foo<'a>(&'a u8);
10
11 impl Foo<'_> {
12     async fn bar() {}
13 }
14
15 fn main() { }