2018-04-10 17:38:35 -05:00
|
|
|
error[E0597]: `first_dropped` does not live long enough
|
|
|
|
--> $DIR/issue28498-reject-trait-bound.rs:46:19
|
|
|
|
|
|
|
|
|
LL | foo1 = Foo(1, &first_dropped);
|
|
|
|
| ^^^^^^^^^^^^^^ borrowed value does not live long enough
|
|
|
|
...
|
|
|
|
LL | }
|
|
|
|
| -
|
|
|
|
| |
|
|
|
|
| borrowed value only lives until here
|
|
|
|
| borrow later used here, when `foo1` is dropped
|
2018-06-13 12:51:53 -05:00
|
|
|
|
|
|
|
|
= note: values in a scope are dropped in the opposite order they are defined
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0597`.
|