2017-12-11 17:29:31 +00:00
|
|
|
error[E0597]: `y` does not live long enough
|
|
|
|
--> $DIR/capture-ref-in-struct.rs:32:16
|
2017-11-22 17:39:46 -05:00
|
|
|
|
|
2017-12-11 17:29:31 +00:00
|
|
|
32 | y: &y,
|
2017-12-14 09:57:34 -08:00
|
|
|
| ^^ borrowed value does not live long enough
|
2017-11-22 17:39:46 -05:00
|
|
|
...
|
2017-12-11 17:29:31 +00:00
|
|
|
37 | }
|
|
|
|
| - borrowed value only lives until here
|
2017-11-22 17:39:46 -05:00
|
|
|
|
|
2017-12-04 05:40:43 -05:00
|
|
|
= note: borrowed value must be valid for lifetime '_#5r...
|
2017-11-22 17:39:46 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|