rust/src/test/ui/span/issue28498-reject-trait-bound.nll.stderr

18 lines
542 B
Plaintext
Raw Normal View History

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
|
= note: values in a scope are dropped in the opposite order they are defined
error: aborting due to previous error
For more information about this error, try `rustc --explain E0597`.