]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/issue-58299.stderr
fix merge conflicts
[rust.git] / src / test / ui / nll / issue-58299.stderr
1 error: lifetime may not live long enough
2   --> $DIR/issue-58299.rs:16:9
3    |
4 LL | fn foo<'a>(x: i32) {
5    |        -- lifetime `'a` defined here
6 ...
7 LL |         A::<'a>::X..=A::<'static>::X => (),
8    |         ^^^^^^^^^^ requires that `'a` must outlive `'static`
9
10 error: lifetime may not live long enough
11   --> $DIR/issue-58299.rs:24:27
12    |
13 LL | fn bar<'a>(x: i32) {
14    |        -- lifetime `'a` defined here
15 ...
16 LL |         A::<'static>::X..=A::<'a>::X => (),
17    |                           ^^^^^^^^^^ requires that `'a` must outlive `'static`
18
19 error: aborting due to 2 previous errors
20