2024-02-16 20:02:50 +00:00
|
|
|
//@ edition:2018
|
2019-04-30 00:45:22 +00:00
|
|
|
|
|
|
|
struct HasLifetime<'a>(&'a bool);
|
|
|
|
|
|
|
|
async fn error(lt: HasLifetime) { //~ ERROR implicit elided lifetime not allowed here
|
|
|
|
if *lt.0 {}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn no_error(lt: HasLifetime) {
|
|
|
|
if *lt.0 {}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|