blob: cc0cfd768c4fc345b3f010af6955838c8294b296 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
error[E0621]: explicit lifetime required in the type of `x`
--> $DIR/issue-3154.rs:16:5
|
LL | fn thing<'a,Q>(x: &Q) -> thing<'a,Q> {
| - consider changing the type of `x` to `&'a Q`
LL | thing{ x: x } //~ ERROR 16:5: 16:18: explicit lifetime required in the type of `x` [E0621]
| ^^^^^^^^^^^^^ lifetime `'a` required
error: aborting due to previous error
For more information about this error, try `rustc --explain E0621`.
|