fork/rust

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

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

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