Skip to content

Commit 1f7023a

Browse files
committed
btreemap-alloc: adjust ui test
1 parent 417b208 commit 1f7023a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/test/ui/variance/variance-btree-invariant-types.stderr

+8-8
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ LL | v
104104
| ^ returning this value requires that `'new` must outlive `'static`
105105
|
106106
= 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`
108108
= help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance
109109

110110
error: lifetime may not live long enough
@@ -117,7 +117,7 @@ LL | v
117117
| ^ returning this value requires that `'new` must outlive `'static`
118118
|
119119
= 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`
121121
= help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance
122122

123123
error: lifetime may not live long enough
@@ -130,7 +130,7 @@ LL | v
130130
| ^ returning this value requires that `'new` must outlive `'static`
131131
|
132132
= 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`
134134
= help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance
135135

136136
error: lifetime may not live long enough
@@ -143,7 +143,7 @@ LL | v
143143
| ^ returning this value requires that `'new` must outlive `'static`
144144
|
145145
= 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`
147147
= help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance
148148

149149
error: lifetime may not live long enough
@@ -156,7 +156,7 @@ LL | v
156156
| ^ returning this value requires that `'new` must outlive `'static`
157157
|
158158
= 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`
160160
= help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance
161161

162162
error: lifetime may not live long enough
@@ -169,7 +169,7 @@ LL | v
169169
| ^ returning this value requires that `'new` must outlive `'static`
170170
|
171171
= 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`
173173
= help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance
174174

175175
error: lifetime may not live long enough
@@ -182,7 +182,7 @@ LL | v
182182
| ^ returning this value requires that `'new` must outlive `'static`
183183
|
184184
= 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`
186186
= help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance
187187

188188
error: lifetime may not live long enough
@@ -195,7 +195,7 @@ LL | v
195195
| ^ returning this value requires that `'new` must outlive `'static`
196196
|
197197
= 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`
199199
= help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance
200200

201201
error: aborting due to 16 previous errors

0 commit comments

Comments
 (0)