fork/rust

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

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

master
956 B29 linesraw
1error[E0597]: `a` does not live long enough
2  --> $DIR/normalization.rs:10:31
3   |
4LL |     let a = 22;
5   |         - binding `a` declared here
6LL |     let _: <() as Foo>::Out = &a;
7   |            ----------------   ^^ borrowed value does not live long enough
8   |            |
9   |            type annotation requires that `a` is borrowed for `'static`
10...
11LL | }
12   | - `a` dropped here while still borrowed
13
14error[E0597]: `a` does not live long enough
15  --> $DIR/normalization.rs:13:40
16   |
17LL |     let a = 22;
18   |         - binding `a` declared here
19LL |     let _: <&'static () as Foo>::Out = &a;
20   |            -------------------------   ^^ borrowed value does not live long enough
21   |            |
22   |            type annotation requires that `a` is borrowed for `'static`
23...
24LL | }
25   | - `a` dropped here while still borrowed
26
27error: aborting due to 2 previous errors
28
29For more information about this error, try `rustc --explain E0597`.