fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
591 B20 linesraw
1error: lifetime may not live long enough
2  --> $DIR/issue-58299.rs:16: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:24: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