rust/src/test/ui/span/issue28498-reject-trait-bound.stderr
2018-02-25 12:15:05 +01:00

26 lines
884 B
Plaintext

error[E0597]: `last_dropped` does not live long enough
--> $DIR/issue28498-reject-trait-bound.rs:44:20
|
44 | foo0 = Foo(0, &last_dropped);
| ^^^^^^^^^^^^ borrowed value does not live long enough
...
50 | }
| - `last_dropped` dropped here while still borrowed
|
= note: values in a scope are dropped in the opposite order they are created
error[E0597]: `first_dropped` does not live long enough
--> $DIR/issue28498-reject-trait-bound.rs:46:20
|
46 | foo1 = Foo(1, &first_dropped);
| ^^^^^^^^^^^^^ borrowed value does not live long enough
...
50 | }
| - `first_dropped` dropped here while still borrowed
|
= note: values in a scope are dropped in the opposite order they are created
error: aborting due to 2 previous errors
If you want more information on this error, try using "rustc --explain E0597"