fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0597]: `c2` does not live long enough 2 --> $DIR/dropck_vec_cycle_checked.rs:98:24 3 | 4LL | let (mut c1, mut c2, mut c3); 5 | ------ binding `c2` declared here 6... 7LL | c1.v[0].v.set(Some(&c2)); 8 | ^^^ borrowed value does not live long enough 9... 10LL | } 11 | - 12 | | 13 | `c2` dropped here while still borrowed 14 | borrow might be used here, when `c1` is dropped and runs the destructor for type `C<'_>` 15 | 16 = note: values in a scope are dropped in the opposite order they are defined 17 18error[E0597]: `c3` does not live long enough 19 --> $DIR/dropck_vec_cycle_checked.rs:100:24 20 | 21LL | let (mut c1, mut c2, mut c3); 22 | ------ binding `c3` declared here 23... 24LL | c1.v[1].v.set(Some(&c3)); 25 | ^^^ borrowed value does not live long enough 26... 27LL | } 28 | - 29 | | 30 | `c3` dropped here while still borrowed 31 | borrow might be used here, when `c1` is dropped and runs the destructor for type `C<'_>` 32 | 33 = note: values in a scope are dropped in the opposite order they are defined 34 35error[E0597]: `c1` does not live long enough 36 --> $DIR/dropck_vec_cycle_checked.rs:104:24 37 | 38LL | let (mut c1, mut c2, mut c3); 39 | ------ binding `c1` declared here 40... 41LL | c3.v[0].v.set(Some(&c1)); 42 | ^^^ borrowed value does not live long enough 43... 44LL | } 45 | - 46 | | 47 | `c1` dropped here while still borrowed 48 | borrow might be used here, when `c1` is dropped and runs the destructor for type `C<'_>` 49 50error: aborting due to 3 previous errors 51 52For more information about this error, try `rustc --explain E0597`.