blob: 91c7203c1d002d5023b1be39e10ac39b12fc21fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
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(&());
}
|