fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
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 | 10 = help: consider replacing `'a` with `'static` 11 12error: lifetime may not live long enough 13 --> $DIR/issue-58299.rs:24:27 14 | 15LL | fn bar<'a>(x: i32) { 16 | -- lifetime `'a` defined here 17... 18LL | A::<'static>::X..=A::<'a>::X => (), 19 | ^^^^^^^^^^ requires that `'a` must outlive `'static` 20 | 21 = help: consider replacing `'a` with `'static` 22 23error: aborting due to 2 previous errors 24