]> git.proxmox.com Git - rustc.git/blob - tests/ui/nll/capture-ref-in-struct.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / nll / capture-ref-in-struct.stderr
1 error[E0597]: `y` does not live long enough
2 --> $DIR/capture-ref-in-struct.rs:18:16
3 |
4 LL | y: &y,
5 | ^^ borrowed value does not live long enough
6 ...
7 LL | }
8 | - `y` dropped here while still borrowed
9 LL |
10 LL | deref(p);
11 | - borrow later used here
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0597`.