blob: 8db7631ef41086cd70636b123ef234748a49c2cc [file] [log] [blame]
// edition:2018
#![feature(async_await, await_macro)]
#![allow(dead_code)]
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() {}