Skip to content

Commit

Permalink
btreemap-alloc: adjust ui test
Browse files Browse the repository at this point in the history
  • Loading branch information
exrook committed Jun 14, 2022
1 parent 417b208 commit 1f7023a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/test/ui/variance/variance-btree-invariant-types.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ LL | v
| ^ returning this value requires that `'new` must outlive `'static`
|
= note: requirement occurs because of the type `std::collections::btree_map::OccupiedEntry<'_, &(), ()>`, which makes the generic argument `&()` invariant
= note: the struct `std::collections::btree_map::OccupiedEntry<'a, K, V>` is invariant over the parameter `K`
= note: the struct `std::collections::btree_map::OccupiedEntry<'a, K, V, A>` is invariant over the parameter `K`
= help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance

error: lifetime may not live long enough
Expand All @@ -117,7 +117,7 @@ LL | v
| ^ returning this value requires that `'new` must outlive `'static`
|
= note: requirement occurs because of the type `std::collections::btree_map::OccupiedEntry<'_, (), &()>`, which makes the generic argument `()` invariant
= note: the struct `std::collections::btree_map::OccupiedEntry<'a, K, V>` is invariant over the parameter `K`
= note: the struct `std::collections::btree_map::OccupiedEntry<'a, K, V, A>` is invariant over the parameter `K`
= help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance

error: lifetime may not live long enough
Expand All @@ -130,7 +130,7 @@ LL | v
| ^ returning this value requires that `'new` must outlive `'static`
|
= note: requirement occurs because of the type `std::collections::btree_map::OccupiedEntry<'_, &(), ()>`, which makes the generic argument `&()` invariant
= note: the struct `std::collections::btree_map::OccupiedEntry<'a, K, V>` is invariant over the parameter `K`
= note: the struct `std::collections::btree_map::OccupiedEntry<'a, K, V, A>` is invariant over the parameter `K`
= help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance

error: lifetime may not live long enough
Expand All @@ -143,7 +143,7 @@ LL | v
| ^ returning this value requires that `'new` must outlive `'static`
|
= note: requirement occurs because of the type `std::collections::btree_map::OccupiedEntry<'_, (), &()>`, which makes the generic argument `()` invariant
= note: the struct `std::collections::btree_map::OccupiedEntry<'a, K, V>` is invariant over the parameter `K`
= note: the struct `std::collections::btree_map::OccupiedEntry<'a, K, V, A>` is invariant over the parameter `K`
= help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance

error: lifetime may not live long enough
Expand All @@ -156,7 +156,7 @@ LL | v
| ^ returning this value requires that `'new` must outlive `'static`
|
= note: requirement occurs because of the type `std::collections::btree_map::VacantEntry<'_, &(), ()>`, which makes the generic argument `&()` invariant
= note: the struct `std::collections::btree_map::VacantEntry<'a, K, V>` is invariant over the parameter `K`
= note: the struct `std::collections::btree_map::VacantEntry<'a, K, V, A>` is invariant over the parameter `K`
= help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance

error: lifetime may not live long enough
Expand All @@ -169,7 +169,7 @@ LL | v
| ^ returning this value requires that `'new` must outlive `'static`
|
= note: requirement occurs because of the type `std::collections::btree_map::VacantEntry<'_, (), &()>`, which makes the generic argument `()` invariant
= note: the struct `std::collections::btree_map::VacantEntry<'a, K, V>` is invariant over the parameter `K`
= note: the struct `std::collections::btree_map::VacantEntry<'a, K, V, A>` is invariant over the parameter `K`
= help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance

error: lifetime may not live long enough
Expand All @@ -182,7 +182,7 @@ LL | v
| ^ returning this value requires that `'new` must outlive `'static`
|
= note: requirement occurs because of the type `std::collections::btree_map::VacantEntry<'_, &(), ()>`, which makes the generic argument `&()` invariant
= note: the struct `std::collections::btree_map::VacantEntry<'a, K, V>` is invariant over the parameter `K`
= note: the struct `std::collections::btree_map::VacantEntry<'a, K, V, A>` is invariant over the parameter `K`
= help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance

error: lifetime may not live long enough
Expand All @@ -195,7 +195,7 @@ LL | v
| ^ returning this value requires that `'new` must outlive `'static`
|
= note: requirement occurs because of the type `std::collections::btree_map::VacantEntry<'_, (), &()>`, which makes the generic argument `()` invariant
= note: the struct `std::collections::btree_map::VacantEntry<'a, K, V>` is invariant over the parameter `K`
= note: the struct `std::collections::btree_map::VacantEntry<'a, K, V, A>` is invariant over the parameter `K`
= help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance

error: aborting due to 16 previous errors
Expand Down

0 comments on commit 1f7023a

Please sign in to comment.