fork/rust

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

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

master
506 B16 linesraw
1error[E0597]: `p` does not live long enough
2  --> $DIR/issue-18118.rs:4:9
3   |
4LL |         let p = 3;
5   |             - binding `p` declared here
6LL |         &p
7   |         ^^
8   |         |
9   |         borrowed value does not live long enough
10   |         using this value as a constant requires that `p` is borrowed for `'static`
11LL |     };
12   |     - `p` dropped here while still borrowed
13
14error: aborting due to previous error
15
16For more information about this error, try `rustc --explain E0597`.