rust/tests/ui/nll/issue-58299.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
591 B
Plaintext
Raw Normal View History

error: lifetime may not live long enough
2022-04-01 17:13:25 +00:00
--> $DIR/issue-58299.rs:14:9
|
LL | fn foo<'a>(x: i32) {
| -- lifetime `'a` defined here
...
2019-03-09 12:03:44 +00:00
LL | A::<'a>::X..=A::<'static>::X => (),
| ^^^^^^^^^^ requires that `'a` must outlive `'static`
2018-11-28 21:05:36 +00:00
error: lifetime may not live long enough
2022-04-01 17:13:25 +00:00
--> $DIR/issue-58299.rs:22:27
|
LL | fn bar<'a>(x: i32) {
| -- lifetime `'a` defined here
...
2019-03-09 12:03:44 +00:00
LL | A::<'static>::X..=A::<'a>::X => (),
| ^^^^^^^^^^ requires that `'a` must outlive `'static`
2018-11-28 21:05:36 +00:00
error: aborting due to 2 previous errors