rust/src/test/ui/nll/capture-ref-in-struct.stderr

16 lines
416 B
Plaintext
Raw Normal View History

error[E0597]: `y` does not live long enough
--> $DIR/capture-ref-in-struct.rs:31:16
|
2018-02-22 18:42:32 -06:00
LL | y: &y,
| ^^ borrowed value does not live long enough
...
2018-02-22 18:42:32 -06:00
LL | }
| - `y` dropped here while still borrowed
2018-02-24 17:01:39 -06:00
LL |
2018-02-22 18:42:32 -06:00
LL | deref(p);
| - borrow later used here
error: aborting due to previous error
2018-03-03 08:59:40 -06:00
For more information about this error, try `rustc --explain E0597`.