]> git.lizzy.rs Git - rust.git/blob - tests/ui/nll/capture-ref-in-struct.stderr
Auto merge of #101138 - Rejyr:diagnostic-migration-rustc-lint-pt2, r=davidtwco
[rust.git] / tests / ui / nll / capture-ref-in-struct.stderr
1 error[E0597]: `y` does not live long enough
2   --> $DIR/capture-ref-in-struct.rs:18:16
3    |
4 LL |             y: &y,
5    |                ^^ borrowed value does not live long enough
6 ...
7 LL |     }
8    |     - `y` dropped here while still borrowed
9 LL |
10 LL |     deref(p);
11    |           - borrow later used here
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0597`.