blob: 81946de612afe34a8c65e6b53349386618c4538a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
error[E0597]: `y` does not live long enough
--> $DIR/capture-ref-in-struct.rs:31:16
|
LL | y: &y,
| ^^ borrowed value does not live long enough
...
LL | }
| - borrowed value only lives until here
LL |
LL | deref(p);
| - borrow later used here
error: aborting due to previous error
For more information about this error, try `rustc --explain E0597`.
|