48663c56 XL |
1 | // edition:2018 |
2 | |
48663c56 XL |
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() {} |