]> git.proxmox.com Git - rustc.git/blame - src/test/ui/span/issue-26656.nll.stderr
New upstream version 1.35.0+dfsg1
[rustc.git] / src / test / ui / span / issue-26656.nll.stderr
CommitLineData
83c7162d 1error[E0597]: `ticking` does not live long enough
0731742a 2 --> $DIR/issue-26656.rs:40:35
83c7162d
XL
3 |
4LL | zook.button = B::BigRedButton(&ticking);
5 | ^^^^^^^^ borrowed value does not live long enough
6LL | }
7 | -
8 | |
8faf50e0 9 | `ticking` dropped here while still borrowed
0bf4aa26 10 | borrow might be used here, when `zook` is dropped and runs the `Drop` code for type `Zook`
94b46f34
XL
11 |
12 = note: values in a scope are dropped in the opposite order they are defined
83c7162d
XL
13
14error: aborting due to previous error
15
16For more information about this error, try `rustc --explain E0597`.