]> git.proxmox.com Git - rustc.git/blob - src/test/ui/span/issue28498-reject-trait-bound.stderr
New upstream version 1.24.1+dfsg1
[rustc.git] / src / test / ui / span / issue28498-reject-trait-bound.stderr
1 error[E0597]: `last_dropped` does not live long enough
2 --> $DIR/issue28498-reject-trait-bound.rs:44:20
3 |
4 44 | foo0 = Foo(0, &last_dropped);
5 | ^^^^^^^^^^^^ borrowed value does not live long enough
6 ...
7 50 | }
8 | - `last_dropped` dropped here while still borrowed
9 |
10 = note: values in a scope are dropped in the opposite order they are created
11
12 error[E0597]: `first_dropped` does not live long enough
13 --> $DIR/issue28498-reject-trait-bound.rs:46:20
14 |
15 46 | foo1 = Foo(1, &first_dropped);
16 | ^^^^^^^^^^^^^ borrowed value does not live long enough
17 ...
18 50 | }
19 | - `first_dropped` dropped here while still borrowed
20 |
21 = note: values in a scope are dropped in the opposite order they are created
22
23 error: aborting due to 2 previous errors
24