]> git.proxmox.com Git - rustc.git/blob - tests/ui/self/issue-61882-2.stderr
New upstream version 1.76.0+dfsg1
[rustc.git] / tests / ui / self / issue-61882-2.stderr
1 error[E0597]: `x` does not live long enough
2 --> $DIR/issue-61882-2.rs:6:14
3 |
4 LL | let x = 0;
5 | - binding `x` declared here
6 LL | Self(&x);
7 | ^^
8 | |
9 | borrowed value does not live long enough
10 | this usage requires that `x` is borrowed for `'static`
11 LL |
12 LL | }
13 | - `x` dropped here while still borrowed
14
15 error: aborting due to 1 previous error
16
17 For more information about this error, try `rustc --explain E0597`.