fork/rust

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

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

master
591 B20 linesraw
1error: lifetime may not live long enough
2  --> $DIR/issue-58299.rs:14:9
3   |
4LL | fn foo<'a>(x: i32) {
5   |        -- lifetime `'a` defined here
6...
7LL |         A::<'a>::X..=A::<'static>::X => (),
8   |         ^^^^^^^^^^ requires that `'a` must outlive `'static`
9
10error: lifetime may not live long enough
11  --> $DIR/issue-58299.rs:22:27
12   |
13LL | fn bar<'a>(x: i32) {
14   |        -- lifetime `'a` defined here
15...
16LL |         A::<'static>::X..=A::<'a>::X => (),
17   |                           ^^^^^^^^^^ requires that `'a` must outlive `'static`
18
19error: aborting due to 2 previous errors
20