]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issue-3154.nll.stderr
Account for --remap-path-prefix in save-analysis
[rust.git] / src / test / ui / issue-3154.nll.stderr
1 warning: not reporting region error due to nll
2   --> $DIR/issue-3154.rs:16:15
3    |
4 LL |     thing{ x: x } //~ ERROR 16:5: 16:18: explicit lifetime required in the type of `x` [E0621]
5    |               ^
6
7 warning: not reporting region error due to nll
8   --> $DIR/issue-3154.rs:16:5
9    |
10 LL |     thing{ x: x } //~ ERROR 16:5: 16:18: explicit lifetime required in the type of `x` [E0621]
11    |     ^^^^^
12
13 error[E0621]: explicit lifetime required in the type of `x`
14   --> $DIR/issue-3154.rs:16:15
15    |
16 LL | fn thing<'a,Q>(x: &Q) -> thing<'a,Q> {
17    |                - 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
20
21 error: aborting due to previous error
22
23 For more information about this error, try `rustc --explain E0621`.