]> git.proxmox.com Git - rustc.git/blame - src/test/ui/span/issue28498-reject-ex1.stderr
New upstream version 1.35.0+dfsg1
[rustc.git] / src / test / ui / span / issue28498-reject-ex1.stderr
CommitLineData
7cac9316 1error[E0597]: `foo.data` does not live long enough
0731742a 2 --> $DIR/issue28498-reject-ex1.rs:34:29
c30ab7b3 3 |
0531ce1d 4LL | foo.data[0].1.set(Some(&foo.data[1]));
ff7c6d11
XL
5 | ^^^^^^^^ borrowed value does not live long enough
6...
0531ce1d 7LL | }
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 12error[E0597]: `foo.data` does not live long enough
0731742a 13 --> $DIR/issue28498-reject-ex1.rs:36:29
c30ab7b3 14 |
0531ce1d 15LL | foo.data[1].1.set(Some(&foo.data[0]));
ff7c6d11 16 | ^^^^^^^^ borrowed value does not live long enough
532ac7d7 17LL |
0531ce1d 18LL | }
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 23error: aborting due to 2 previous errors
c30ab7b3 24
0531ce1d 25For more information about this error, try `rustc --explain E0597`.