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

28 lines
905 B
Plaintext
Raw Normal View History

2020-01-08 11:02:10 -06:00
error[E0495]: cannot infer an appropriate lifetime for lifetime parameter `'a` due to conflicting requirements
2020-09-07 04:01:45 -05:00
--> $DIR/regions-normalize-in-where-clause-list.rs:24:4
2020-01-08 11:02:10 -06:00
|
LL | fn bar<'a, 'b>()
| ^^^
2020-01-08 11:02:10 -06: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 11:02:10 -06: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 11:02:10 -06: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 11:02:10 -06:00
|
LL | fn bar<'a, 'b>()
| ^^^
2020-01-07 14:05:34 -06:00
= note: expected `Project<'a, 'b>`
found `Project<'_, '_>`
2020-01-08 11:02:10 -06:00
error: aborting due to previous error
2018-08-08 07:28:26 -05:00
2019-09-12 08:00:44 -05:00
For more information about this error, try `rustc --explain E0495`.