1 error: lifetime may not live long enough
2 --> $DIR/variance-btree-invariant-types.rs:4:5
4 LL | fn iter_cov_key<'a, 'new>(v: IterMut<'a, &'static (), ()>) -> IterMut<'a, &'new (), ()> {
5 | ---- lifetime `'new` defined here
7 | ^ returning this value requires that `'new` must outlive `'static`
9 error: lifetime may not live long enough
10 --> $DIR/variance-btree-invariant-types.rs:7:5
12 LL | fn iter_cov_val<'a, 'new>(v: IterMut<'a, (), &'static ()>) -> IterMut<'a, (), &'new ()> {
13 | ---- lifetime `'new` defined here
15 | ^ returning this value requires that `'new` must outlive `'static`
17 error: lifetime may not live long enough
18 --> $DIR/variance-btree-invariant-types.rs:10:5
20 LL | fn iter_contra_key<'a, 'new>(v: IterMut<'a, &'new (), ()>) -> IterMut<'a, &'static (), ()> {
21 | ---- lifetime `'new` defined here
23 | ^ returning this value requires that `'new` must outlive `'static`
25 error: lifetime may not live long enough
26 --> $DIR/variance-btree-invariant-types.rs:13:5
28 LL | fn iter_contra_val<'a, 'new>(v: IterMut<'a, (), &'new ()>) -> IterMut<'a, (), &'static ()> {
29 | ---- lifetime `'new` defined here
31 | ^ returning this value requires that `'new` must outlive `'static`
33 error: lifetime may not live long enough
34 --> $DIR/variance-btree-invariant-types.rs:18:5
36 LL | fn occ_cov_key<'a, 'new>(v: OccupiedEntry<'a, &'static (), ()>)
37 | ---- lifetime `'new` defined here
38 LL | -> OccupiedEntry<'a, &'new (), ()> {
40 | ^ returning this value requires that `'new` must outlive `'static`
42 error: lifetime may not live long enough
43 --> $DIR/variance-btree-invariant-types.rs:22:5
45 LL | fn occ_cov_val<'a, 'new>(v: OccupiedEntry<'a, (), &'static ()>)
46 | ---- lifetime `'new` defined here
47 LL | -> OccupiedEntry<'a, (), &'new ()> {
49 | ^ returning this value requires that `'new` must outlive `'static`
51 error: lifetime may not live long enough
52 --> $DIR/variance-btree-invariant-types.rs:26:5
54 LL | fn occ_contra_key<'a, 'new>(v: OccupiedEntry<'a, &'new (), ()>)
55 | ---- lifetime `'new` defined here
56 LL | -> OccupiedEntry<'a, &'static (), ()> {
58 | ^ returning this value requires that `'new` must outlive `'static`
60 error: lifetime may not live long enough
61 --> $DIR/variance-btree-invariant-types.rs:30:5
63 LL | fn occ_contra_val<'a, 'new>(v: OccupiedEntry<'a, (), &'new ()>)
64 | ---- lifetime `'new` defined here
65 LL | -> OccupiedEntry<'a, (), &'static ()> {
67 | ^ returning this value requires that `'new` must outlive `'static`
69 error: lifetime may not live long enough
70 --> $DIR/variance-btree-invariant-types.rs:35:5
72 LL | fn vac_cov_key<'a, 'new>(v: VacantEntry<'a, &'static (), ()>)
73 | ---- lifetime `'new` defined here
74 LL | -> VacantEntry<'a, &'new (), ()> {
76 | ^ returning this value requires that `'new` must outlive `'static`
78 error: lifetime may not live long enough
79 --> $DIR/variance-btree-invariant-types.rs:39:5
81 LL | fn vac_cov_val<'a, 'new>(v: VacantEntry<'a, (), &'static ()>)
82 | ---- lifetime `'new` defined here
83 LL | -> VacantEntry<'a, (), &'new ()> {
85 | ^ returning this value requires that `'new` must outlive `'static`
87 error: lifetime may not live long enough
88 --> $DIR/variance-btree-invariant-types.rs:43:5
90 LL | fn vac_contra_key<'a, 'new>(v: VacantEntry<'a, &'new (), ()>)
91 | ---- lifetime `'new` defined here
92 LL | -> VacantEntry<'a, &'static (), ()> {
94 | ^ returning this value requires that `'new` must outlive `'static`
96 error: lifetime may not live long enough
97 --> $DIR/variance-btree-invariant-types.rs:47:5
99 LL | fn vac_contra_val<'a, 'new>(v: VacantEntry<'a, (), &'new ()>)
100 | ---- lifetime `'new` defined here
101 LL | -> VacantEntry<'a, (), &'static ()> {
103 | ^ returning this value requires that `'new` must outlive `'static`
105 error: aborting due to 12 previous errors