blob: 3cd7ce8cd54092d3f0cf328efd9ac53a375c79a0 [file] [log] [blame]
warning: not reporting region error due to nll
--> $DIR/issue-3154.rs:16:15
|
LL | thing{ x: x } //~ ERROR 16:5: 16:18: explicit lifetime required in the type of `x` [E0621]
| ^
warning: not reporting region error due to nll
--> $DIR/issue-3154.rs:16:5
|
LL | thing{ x: x } //~ ERROR 16:5: 16:18: explicit lifetime required in the type of `x` [E0621]
| ^^^^^
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> {
| -- help: add explicit lifetime `'a` to the type of `x`: `&'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`.