fork/rust

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

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

master
482 B17 linesraw
1error[E0597]: `n` does not live long enough
2  --> $DIR/issue-69114-static-ty.rs:7:9
3   |
4LL |     let n = 42;
5   |         - binding `n` declared here
6LL |     FOO(&n);
7   |     ----^^-
8   |     |   |
9   |     |   borrowed value does not live long enough
10   |     argument requires that `n` is borrowed for `'static`
11LL |
12LL | }
13   | - `n` dropped here while still borrowed
14
15error: aborting due to previous error
16
17For more information about this error, try `rustc --explain E0597`.