fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0597]: `c_shortest` does not live long enough 2 --> $DIR/dropck-eyepatch-reorder.rs:64:23 3 | 4LL | let (mut dt, mut dr, c_shortest): (Dt<_>, Dr<_>, Cell<_>); 5 | ---------- binding `c_shortest` declared here 6... 7LL | dt = Dt("dt", &c_shortest); 8 | ^^^^^^^^^^^ borrowed value does not live long enough 9... 10LL | } 11 | - 12 | | 13 | `c_shortest` dropped here while still borrowed 14 | borrow might be used here, when `dt` is dropped and runs the `Drop` code for type `Dt` 15 | 16 = note: values in a scope are dropped in the opposite order they are defined 17 18error[E0597]: `c_shortest` does not live long enough 19 --> $DIR/dropck-eyepatch-reorder.rs:86:32 20 | 21LL | let (mut pt, mut pr, c_shortest): (Pt<_, _>, Pr<_>, Cell<_>); 22 | ---------- binding `c_shortest` declared here 23... 24LL | pt = Pt("pt", &c_long, &c_shortest); 25 | ^^^^^^^^^^^ borrowed value does not live long enough 26... 27LL | } 28 | - 29 | | 30 | `c_shortest` dropped here while still borrowed 31 | borrow might be used here, when `pt` is dropped and runs the `Drop` code for type `Pt` 32 | 33 = note: values in a scope are dropped in the opposite order they are defined 34 35error: aborting due to 2 previous errors 36 37For more information about this error, try `rustc --explain E0597`.