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