You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/test/ui/variance/variance-btree-invariant-types.stderr
+8-8
Original file line number
Diff line number
Diff line change
@@ -104,7 +104,7 @@ LL | v
104
104
| ^ returning this value requires that `'new` must outlive `'static`
105
105
|
106
106
= note: requirement occurs because of the type `std::collections::btree_map::OccupiedEntry<'_, &(), ()>`, which makes the generic argument `&()` invariant
107
-
= note: the struct `std::collections::btree_map::OccupiedEntry<'a, K, V>` is invariant over the parameter `K`
107
+
= note: the struct `std::collections::btree_map::OccupiedEntry<'a, K, V, A>` is invariant over the parameter `K`
108
108
= help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance
109
109
110
110
error: lifetime may not live long enough
@@ -117,7 +117,7 @@ LL | v
117
117
| ^ returning this value requires that `'new` must outlive `'static`
118
118
|
119
119
= note: requirement occurs because of the type `std::collections::btree_map::OccupiedEntry<'_, (), &()>`, which makes the generic argument `()` invariant
120
-
= note: the struct `std::collections::btree_map::OccupiedEntry<'a, K, V>` is invariant over the parameter `K`
120
+
= note: the struct `std::collections::btree_map::OccupiedEntry<'a, K, V, A>` is invariant over the parameter `K`
121
121
= help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance
122
122
123
123
error: lifetime may not live long enough
@@ -130,7 +130,7 @@ LL | v
130
130
| ^ returning this value requires that `'new` must outlive `'static`
131
131
|
132
132
= note: requirement occurs because of the type `std::collections::btree_map::OccupiedEntry<'_, &(), ()>`, which makes the generic argument `&()` invariant
133
-
= note: the struct `std::collections::btree_map::OccupiedEntry<'a, K, V>` is invariant over the parameter `K`
133
+
= note: the struct `std::collections::btree_map::OccupiedEntry<'a, K, V, A>` is invariant over the parameter `K`
134
134
= help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance
135
135
136
136
error: lifetime may not live long enough
@@ -143,7 +143,7 @@ LL | v
143
143
| ^ returning this value requires that `'new` must outlive `'static`
144
144
|
145
145
= note: requirement occurs because of the type `std::collections::btree_map::OccupiedEntry<'_, (), &()>`, which makes the generic argument `()` invariant
146
-
= note: the struct `std::collections::btree_map::OccupiedEntry<'a, K, V>` is invariant over the parameter `K`
146
+
= note: the struct `std::collections::btree_map::OccupiedEntry<'a, K, V, A>` is invariant over the parameter `K`
147
147
= help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance
148
148
149
149
error: lifetime may not live long enough
@@ -156,7 +156,7 @@ LL | v
156
156
| ^ returning this value requires that `'new` must outlive `'static`
157
157
|
158
158
= note: requirement occurs because of the type `std::collections::btree_map::VacantEntry<'_, &(), ()>`, which makes the generic argument `&()` invariant
159
-
= note: the struct `std::collections::btree_map::VacantEntry<'a, K, V>` is invariant over the parameter `K`
159
+
= note: the struct `std::collections::btree_map::VacantEntry<'a, K, V, A>` is invariant over the parameter `K`
160
160
= help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance
161
161
162
162
error: lifetime may not live long enough
@@ -169,7 +169,7 @@ LL | v
169
169
| ^ returning this value requires that `'new` must outlive `'static`
170
170
|
171
171
= note: requirement occurs because of the type `std::collections::btree_map::VacantEntry<'_, (), &()>`, which makes the generic argument `()` invariant
172
-
= note: the struct `std::collections::btree_map::VacantEntry<'a, K, V>` is invariant over the parameter `K`
172
+
= note: the struct `std::collections::btree_map::VacantEntry<'a, K, V, A>` is invariant over the parameter `K`
173
173
= help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance
174
174
175
175
error: lifetime may not live long enough
@@ -182,7 +182,7 @@ LL | v
182
182
| ^ returning this value requires that `'new` must outlive `'static`
183
183
|
184
184
= note: requirement occurs because of the type `std::collections::btree_map::VacantEntry<'_, &(), ()>`, which makes the generic argument `&()` invariant
185
-
= note: the struct `std::collections::btree_map::VacantEntry<'a, K, V>` is invariant over the parameter `K`
185
+
= note: the struct `std::collections::btree_map::VacantEntry<'a, K, V, A>` is invariant over the parameter `K`
186
186
= help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance
187
187
188
188
error: lifetime may not live long enough
@@ -195,7 +195,7 @@ LL | v
195
195
| ^ returning this value requires that `'new` must outlive `'static`
196
196
|
197
197
= note: requirement occurs because of the type `std::collections::btree_map::VacantEntry<'_, (), &()>`, which makes the generic argument `()` invariant
198
-
= note: the struct `std::collections::btree_map::VacantEntry<'a, K, V>` is invariant over the parameter `K`
198
+
= note: the struct `std::collections::btree_map::VacantEntry<'a, K, V, A>` is invariant over the parameter `K`
199
199
= help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance
0 commit comments