fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
1.1 KiB33 linesraw
1error[E0495]: cannot infer an appropriate lifetime for lifetime parameter `'a` due to conflicting requirements
2  --> $DIR/regions-normalize-in-where-clause-list.rs:22:1
3   |
4LL | / fn bar<'a, 'b>()
5LL | |     where <() as Project<'a, 'b>>::Item : Eq
6LL | | {
7LL | | }
8   | |_^
9   |
10note: first, the lifetime cannot outlive the lifetime `'a` as defined on the function body at 22:8...
11  --> $DIR/regions-normalize-in-where-clause-list.rs:22:8
12   |
13LL | fn bar<'a, 'b>()
14   |        ^^
15note: ...but the lifetime must also be valid for the lifetime `'b` as defined on the function body at 22:12...
16  --> $DIR/regions-normalize-in-where-clause-list.rs:22:12
17   |
18LL | fn bar<'a, 'b>()
19   |            ^^
20note: ...so that the types are compatible
21  --> $DIR/regions-normalize-in-where-clause-list.rs:22:1
22   |
23LL | / fn bar<'a, 'b>()
24LL | |     where <() as Project<'a, 'b>>::Item : Eq
25LL | | {
26LL | | }
27   | |_^
28   = note: expected  `Project<'a, 'b>`
29              found  `Project<'_, '_>`
30
31error: aborting due to previous error
32
33For more information about this error, try `rustc --explain E0495`.