]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/async-fn-elided-impl-lifetime-parameter.rs
Rollup merge of #102215 - alexcrichton:wasm-link-whole-archive, r=estebank
[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() { }