]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/capture-ref-in-struct.stderr
Auto merge of #47607 - davidtwco:issue-45697, r=nikomatsakis
[rust.git] / src / test / ui / nll / capture-ref-in-struct.stderr
1 error[E0597]: `y` does not live long enough
2   --> $DIR/capture-ref-in-struct.rs:33:16
3    |
4 33 |             y: &y,
5    |                ^^ borrowed value does not live long enough
6 ...
7 38 |     }
8    |     - borrowed value only lives until here
9 39 | 
10 40 |     deref(p);
11    |           - borrow later used here
12    |
13    = note: borrowed value must be valid for lifetime '_#5r...
14
15 error: aborting due to previous error
16