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

14 lines
335 B
Plaintext
Raw Normal View History

error[E0597]: `y` does not live long enough
--> $DIR/capture-ref-in-struct.rs:32:16
|
32 | y: &y,
| ^^ does not live long enough
...
37 | }
| - borrowed value only lives until here
|
= note: borrowed value must be valid for lifetime '_#4r...
error: aborting due to previous error