]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/async-fn-path-elision.rs
Rollup merge of #102215 - alexcrichton:wasm-link-whole-archive, r=estebank
[rust.git] / src / test / ui / async-await / async-fn-path-elision.rs
1 // edition:2018
2
3 struct HasLifetime<'a>(&'a bool);
4
5 async fn error(lt: HasLifetime) { //~ ERROR implicit elided lifetime not allowed here
6     if *lt.0 {}
7 }
8
9 fn no_error(lt: HasLifetime) {
10     if *lt.0 {}
11 }
12
13 fn main() {}