]> git.lizzy.rs Git - rust.git/blob - tests/ui/span/issue-26656.stderr
Rollup merge of #106779 - RReverser:patch-2, r=Mark-Simulacrum
[rust.git] / tests / ui / span / issue-26656.stderr
1 error[E0597]: `ticking` does not live long enough
2   --> $DIR/issue-26656.rs:40:35
3    |
4 LL |     let (mut zook, ticking);
5    |                    ------- binding `ticking` declared here
6 ...
7 LL |     zook.button = B::BigRedButton(&ticking);
8    |                                   ^^^^^^^^ borrowed value does not live long enough
9 LL | }
10    | -
11    | |
12    | `ticking` dropped here while still borrowed
13    | borrow might be used here, when `zook` is dropped and runs the `Drop` code for type `Zook`
14    |
15    = note: values in a scope are dropped in the opposite order they are defined
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0597`.