fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
489 B18 linesraw
1error[E0597]: `y` does not live long enough
2  --> $DIR/capture-ref-in-struct.rs:18:16
3   |
4LL |         let y = 22;
5   |             - binding `y` declared here
6...
7LL |             y: &y,
8   |                ^^ borrowed value does not live long enough
9...
10LL |     }
11   |     - `y` dropped here while still borrowed
12LL |
13LL |     deref(p);
14   |           - borrow later used here
15
16error: aborting due to previous error
17
18For more information about this error, try `rustc --explain E0597`.