1 warning: not reporting region error due to nll
2 --> $DIR/issue-3154.rs:16:15
4 LL | thing{ x: x } //~ ERROR 16:5: 16:18: explicit lifetime required in the type of `x` [E0621]
7 warning: not reporting region error due to nll
8 --> $DIR/issue-3154.rs:16:5
10 LL | thing{ x: x } //~ ERROR 16:5: 16:18: explicit lifetime required in the type of `x` [E0621]
13 error[E0621]: explicit lifetime required in the type of `x`
14 --> $DIR/issue-3154.rs:16:15
16 LL | fn thing<'a,Q>(x: &Q) -> thing<'a,Q> {
17 | -- help: consider changing the type of `x` to : `&'a Q`
18 LL | thing{ x: x } //~ ERROR 16:5: 16:18: explicit lifetime required in the type of `x` [E0621]
19 | ^ lifetime `'a` required
21 error: aborting due to previous error
23 For more information about this error, try `rustc --explain E0621`.