struct thing { x: &Q } fn thing(x: &Q) -> thing { thing{ x: x } //~ ERROR cannot infer an appropriate lifetime } fn main() { thing(&()); }