blob: 91c7203c1d002d5023b1be39e10ac39b12fc21fe [file] [log] [blame]
struct Thing<'a, Q:'a> {
x: &'a Q
}
fn thing<'a,Q>(x: &Q) -> Thing<'a,Q> {
Thing { x: x } //~ ERROR explicit lifetime required in the type of `x` [E0621]
}
fn main() {
thing(&());
}