]> git.lizzy.rs Git - rust.git/blob - tests/ui/async-await/async-fn-path-elision.rs
Rollup merge of #107048 - DebugSteven:newer-x-check-cargo, r=albertlarsan68
[rust.git] / tests / 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() {}