1 error[E0597]: `foo.data` does not live long enough
2 --> $DIR/issue28498-reject-ex1.rs:46:1
4 44 | foo.data[0].1.set(Some(&foo.data[1]));
5 | -------- borrow occurs here
6 45 | foo.data[1].1.set(Some(&foo.data[0]));
8 | ^ `foo.data` dropped here while still borrowed
10 = note: values in a scope are dropped in the opposite order they are created
12 error[E0597]: `foo.data` does not live long enough
13 --> $DIR/issue28498-reject-ex1.rs:46:1
15 45 | foo.data[1].1.set(Some(&foo.data[0]));
16 | -------- borrow occurs here
18 | ^ `foo.data` dropped here while still borrowed
20 = note: values in a scope are dropped in the opposite order they are created
22 error: aborting due to 2 previous errors