fork/rust

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

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

master
475 B15 linesraw
1error: lifetime may not live long enough
2  --> $DIR/error-handling.rs:20:16
3   |
4LL | fn foo<'a, 'b, 'c>(x: &'static i32, mut y: &'a i32) -> E<'b, 'c> {
5   |        --  -- lifetime `'b` defined here
6   |        |
7   |        lifetime `'a` defined here
8...
9LL |         let _: &'b i32 = *u.0;
10   |                ^^^^^^^ type annotation requires that `'a` must outlive `'b`
11   |
12   = help: consider adding the following bound: `'a: 'b`
13
14error: aborting due to previous error
15