rust/tests/ui/regions/regions-normalize-in-where-clause-list.stderr

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

28 lines
907 B
Plaintext
Raw Normal View History

2020-01-08 17:02:10 +00:00
error[E0495]: cannot infer an appropriate lifetime for lifetime parameter `'a` due to conflicting requirements
2020-09-07 09:01:45 +00:00
--> $DIR/regions-normalize-in-where-clause-list.rs:24:4
2020-01-08 17:02:10 +00:00
|
LL | fn bar<'a, 'b>()
| ^^^
2020-01-08 17:02:10 +00:00
|
note: first, the lifetime cannot outlive the lifetime `'a` as defined here...
--> $DIR/regions-normalize-in-where-clause-list.rs:24:8
2020-01-08 17:02:10 +00:00
|
LL | fn bar<'a, 'b>()
| ^^
note: ...but the lifetime must also be valid for the lifetime `'b` as defined here...
--> $DIR/regions-normalize-in-where-clause-list.rs:24:12
2020-01-08 17:02:10 +00:00
|
LL | fn bar<'a, 'b>()
| ^^
note: ...so that the types are compatible
--> $DIR/regions-normalize-in-where-clause-list.rs:24:4
2020-01-08 17:02:10 +00:00
|
LL | fn bar<'a, 'b>()
| ^^^
2020-01-07 20:05:34 +00:00
= note: expected `Project<'a, 'b>`
found `Project<'_, '_>`
2020-01-08 17:02:10 +00:00
error: aborting due to 1 previous error
2018-08-08 12:28:26 +00:00
2019-09-12 13:00:44 +00:00
For more information about this error, try `rustc --explain E0495`.