fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
3.1 KiB105 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:1
71   |
72LL | / fn bar<'a, 'b>()
73LL | |
74LL | |
75LL | |     where <() as Project<'a, 'b>>::Item : Eq
76LL | | {
77LL | | }
78   | |_^
79   |
80note: first, the lifetime cannot outlive the lifetime `'a` as defined on the function body at 22:8...
81  --> $DIR/regions-normalize-in-where-clause-list.rs:22:8
82   |
83LL | fn bar<'a, 'b>()
84   |        ^^
85note: ...but the lifetime must also be valid for the lifetime `'b` as defined on the function body at 22:12...
86  --> $DIR/regions-normalize-in-where-clause-list.rs:22:12
87   |
88LL | fn bar<'a, 'b>()
89   |            ^^
90note: ...so that the types are compatible
91  --> $DIR/regions-normalize-in-where-clause-list.rs:22:1
92   |
93LL | / fn bar<'a, 'b>()
94LL | |
95LL | |
96LL | |     where <() as Project<'a, 'b>>::Item : Eq
97LL | | {
98LL | | }
99   | |_^
100   = note: expected  `Project<'a, 'b>`
101              found  `Project<'_, '_>`
102
103error: aborting due to 3 previous errors
104
105For more information about this error, try `rustc --explain E0495`.