fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
2.9 KiB95 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 | |
6LL | |
7LL | |     where <() as Project<'a, 'b>>::Item : Eq
8LL | | {
9LL | | }
10   | |_^
11   |
12note: first, the lifetime cannot outlive the lifetime `'a` as defined on the function body at 22:8...
13  --> $DIR/regions-normalize-in-where-clause-list.rs:22:8
14   |
15LL | fn bar<'a, 'b>()
16   |        ^^
17note: ...but the lifetime must also be valid for the lifetime `'b` as defined on the function body at 22:12...
18  --> $DIR/regions-normalize-in-where-clause-list.rs:22:12
19   |
20LL | fn bar<'a, 'b>()
21   |            ^^
22note: ...so that the types are compatible
23  --> $DIR/regions-normalize-in-where-clause-list.rs:22:1
24   |
25LL | / fn bar<'a, 'b>()
26LL | |
27LL | |
28LL | |     where <() as Project<'a, 'b>>::Item : Eq
29LL | | {
30LL | | }
31   | |_^
32   = note: expected  `Project<'a, 'b>`
33              found  `Project<'_, '_>`
34
35error[E0495]: cannot infer an appropriate lifetime for lifetime parameter `'a` due to conflicting requirements
36  --> $DIR/regions-normalize-in-where-clause-list.rs:22:1
37   |
38LL | / fn bar<'a, 'b>()
39LL | |
40LL | |
41LL | |     where <() as Project<'a, 'b>>::Item : Eq
42LL | | {
43LL | | }
44   | |_^
45   |
46note: first, the lifetime cannot outlive the lifetime `'a` as defined on the function body at 22:8...
47  --> $DIR/regions-normalize-in-where-clause-list.rs:22:8
48   |
49LL | fn bar<'a, 'b>()
50   |        ^^
51note: ...but the lifetime must also be valid for the lifetime `'b` as defined on the function body at 22:12...
52  --> $DIR/regions-normalize-in-where-clause-list.rs:22:12
53   |
54LL | fn bar<'a, 'b>()
55   |            ^^
56note: ...so that the types are compatible
57  --> $DIR/regions-normalize-in-where-clause-list.rs:22:1
58   |
59LL | / fn bar<'a, 'b>()
60LL | |
61LL | |
62LL | |     where <() as Project<'a, 'b>>::Item : Eq
63LL | | {
64LL | | }
65   | |_^
66   = note: expected  `Project<'a, 'b>`
67              found  `Project<'_, '_>`
68
69error[E0495]: cannot infer an appropriate lifetime for lifetime parameter `'a` due to conflicting requirements
70  --> $DIR/regions-normalize-in-where-clause-list.rs:22:4
71   |
72LL | fn bar<'a, 'b>()
73   |    ^^^
74   |
75note: first, the lifetime cannot outlive the lifetime `'a` as defined on the function body at 22:8...
76  --> $DIR/regions-normalize-in-where-clause-list.rs:22:8
77   |
78LL | fn bar<'a, 'b>()
79   |        ^^
80note: ...but the lifetime must also be valid for the lifetime `'b` as defined on the function body at 22:12...
81  --> $DIR/regions-normalize-in-where-clause-list.rs:22:12
82   |
83LL | fn bar<'a, 'b>()
84   |            ^^
85note: ...so that the types are compatible
86  --> $DIR/regions-normalize-in-where-clause-list.rs:22:4
87   |
88LL | fn bar<'a, 'b>()
89   |    ^^^
90   = note: expected  `Project<'a, 'b>`
91              found  `Project<'_, '_>`
92
93error: aborting due to 3 previous errors
94
95For more information about this error, try `rustc --explain E0495`.