]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-61882-2.stderr
Rollup merge of #62337 - Mark-Simulacrum:fix-cpu-usage-script, r=alexcrichton
[rust.git] / src / test / ui / issues / issue-61882-2.stderr
1 error[E0597]: `x` does not live long enough
2   --> $DIR/issue-61882-2.rs:6:14
3    |
4 LL |         Self(&x);
5    |              ^^
6    |              |
7    |              borrowed value does not live long enough
8    |              requires that `x` is borrowed for `'static`
9 LL |
10 LL |     }
11    |     - `x` dropped here while still borrowed
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0597`.