]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/capture-ref-in-struct.stderr
Rollup merge of #48511 - GuillaumeGomez:rustdoc-resource-suffix, r=QuietMisdreavus
[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 LL |             y: &y,
5    |                ^^ borrowed value does not live long enough
6 ...
7 LL |     }
8    |     - borrowed value only lives until here
9 LL | 
10 LL |     deref(p);
11    |           - borrow later used here
12
13 error: aborting due to previous error
14
15 If you want more information on this error, try using "rustc --explain E0597"