]>
Commit | Line | Data |
---|---|---|
7cac9316 | 1 | error[E0597]: `foo.data` does not live long enough |
0731742a | 2 | --> $DIR/issue28498-reject-ex1.rs:34:29 |
c30ab7b3 | 3 | | |
0531ce1d | 4 | LL | foo.data[0].1.set(Some(&foo.data[1])); |
ff7c6d11 XL |
5 | | ^^^^^^^^ borrowed value does not live long enough |
6 | ... | |
0531ce1d | 7 | LL | } |
ff7c6d11 | 8 | | - `foo.data` dropped here while still borrowed |
c30ab7b3 SL |
9 | | |
10 | = note: values in a scope are dropped in the opposite order they are created | |
11 | ||
7cac9316 | 12 | error[E0597]: `foo.data` does not live long enough |
0731742a | 13 | --> $DIR/issue28498-reject-ex1.rs:36:29 |
c30ab7b3 | 14 | | |
0531ce1d | 15 | LL | foo.data[1].1.set(Some(&foo.data[0])); |
ff7c6d11 | 16 | | ^^^^^^^^ borrowed value does not live long enough |
532ac7d7 | 17 | LL | |
0531ce1d | 18 | LL | } |
ff7c6d11 | 19 | | - `foo.data` dropped here while still borrowed |
c30ab7b3 SL |
20 | | |
21 | = note: values in a scope are dropped in the opposite order they are created | |
22 | ||
041b39d2 | 23 | error: aborting due to 2 previous errors |
c30ab7b3 | 24 | |
0531ce1d | 25 | For more information about this error, try `rustc --explain E0597`. |