]>
Commit | Line | Data |
---|---|---|
7cac9316 | 1 | error[E0597]: `last_dropped` does not live long enough |
ff7c6d11 | 2 | --> $DIR/issue28498-reject-lifetime-param.rs:42:20 |
c30ab7b3 SL |
3 | | |
4 | 42 | foo0 = Foo(0, &last_dropped); | |
ff7c6d11 | 5 | | ^^^^^^^^^^^^ borrowed value does not live long enough |
c30ab7b3 | 6 | ... |
ff7c6d11 XL |
7 | 48 | } |
8 | | - `last_dropped` 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]: `first_dropped` does not live long enough |
ff7c6d11 | 13 | --> $DIR/issue28498-reject-lifetime-param.rs:44:20 |
c30ab7b3 | 14 | | |
ff7c6d11 XL |
15 | 44 | foo1 = Foo(1, &first_dropped); |
16 | | ^^^^^^^^^^^^^ borrowed value does not live long enough | |
c30ab7b3 | 17 | ... |
ff7c6d11 XL |
18 | 48 | } |
19 | | - `first_dropped` 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 |