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 = help: consider replacing `'new` with `'static`
11 error: lifetime may not live long enough
12 --> $DIR/variance-btree-invariant-types.rs:7:5
14 LL | fn iter_cov_val<'a, 'new>(v: IterMut<'a, (), &'static ()>) -> IterMut<'a, (), &'new ()> {
15 | ---- lifetime `'new` defined here
17 | ^ returning this value requires that `'new` must outlive `'static`
19 = help: consider replacing `'new` with `'static`
21 error: lifetime may not live long enough
22 --> $DIR/variance-btree-invariant-types.rs:10:5
24 LL | fn iter_contra_key<'a, 'new>(v: IterMut<'a, &'new (), ()>) -> IterMut<'a, &'static (), ()> {
25 | ---- lifetime `'new` defined here
27 | ^ returning this value requires that `'new` must outlive `'static`
29 = help: consider replacing `'new` with `'static`
31 error: lifetime may not live long enough
32 --> $DIR/variance-btree-invariant-types.rs:13:5
34 LL | fn iter_contra_val<'a, 'new>(v: IterMut<'a, (), &'new ()>) -> IterMut<'a, (), &'static ()> {
35 | ---- lifetime `'new` defined here
37 | ^ returning this value requires that `'new` must outlive `'static`
39 = help: consider replacing `'new` with `'static`
41 error: lifetime may not live long enough
42 --> $DIR/variance-btree-invariant-types.rs:18:5
44 LL | fn occ_cov_key<'a, 'new>(v: OccupiedEntry<'a, &'static (), ()>)
45 | ---- lifetime `'new` defined here
46 LL | -> OccupiedEntry<'a, &'new (), ()> {
48 | ^ returning this value requires that `'new` must outlive `'static`
50 = help: consider replacing `'new` with `'static`
52 error: lifetime may not live long enough
53 --> $DIR/variance-btree-invariant-types.rs:22:5
55 LL | fn occ_cov_val<'a, 'new>(v: OccupiedEntry<'a, (), &'static ()>)
56 | ---- lifetime `'new` defined here
57 LL | -> OccupiedEntry<'a, (), &'new ()> {
59 | ^ returning this value requires that `'new` must outlive `'static`
61 = help: consider replacing `'new` with `'static`
63 error: lifetime may not live long enough
64 --> $DIR/variance-btree-invariant-types.rs:26:5
66 LL | fn occ_contra_key<'a, 'new>(v: OccupiedEntry<'a, &'new (), ()>)
67 | ---- lifetime `'new` defined here
68 LL | -> OccupiedEntry<'a, &'static (), ()> {
70 | ^ returning this value requires that `'new` must outlive `'static`
72 = help: consider replacing `'new` with `'static`
74 error: lifetime may not live long enough
75 --> $DIR/variance-btree-invariant-types.rs:30:5
77 LL | fn occ_contra_val<'a, 'new>(v: OccupiedEntry<'a, (), &'new ()>)
78 | ---- lifetime `'new` defined here
79 LL | -> OccupiedEntry<'a, (), &'static ()> {
81 | ^ returning this value requires that `'new` must outlive `'static`
83 = help: consider replacing `'new` with `'static`
85 error: lifetime may not live long enough
86 --> $DIR/variance-btree-invariant-types.rs:35:5
88 LL | fn vac_cov_key<'a, 'new>(v: VacantEntry<'a, &'static (), ()>)
89 | ---- lifetime `'new` defined here
90 LL | -> VacantEntry<'a, &'new (), ()> {
92 | ^ returning this value requires that `'new` must outlive `'static`
94 = help: consider replacing `'new` with `'static`
96 error: lifetime may not live long enough
97 --> $DIR/variance-btree-invariant-types.rs:39:5
99 LL | fn vac_cov_val<'a, 'new>(v: VacantEntry<'a, (), &'static ()>)
100 | ---- lifetime `'new` defined here
101 LL | -> VacantEntry<'a, (), &'new ()> {
103 | ^ returning this value requires that `'new` must outlive `'static`
105 = help: consider replacing `'new` with `'static`
107 error: lifetime may not live long enough
108 --> $DIR/variance-btree-invariant-types.rs:43:5
110 LL | fn vac_contra_key<'a, 'new>(v: VacantEntry<'a, &'new (), ()>)
111 | ---- lifetime `'new` defined here
112 LL | -> VacantEntry<'a, &'static (), ()> {
114 | ^ returning this value requires that `'new` must outlive `'static`
116 = help: consider replacing `'new` with `'static`
118 error: lifetime may not live long enough
119 --> $DIR/variance-btree-invariant-types.rs:47:5
121 LL | fn vac_contra_val<'a, 'new>(v: VacantEntry<'a, (), &'new ()>)
122 | ---- lifetime `'new` defined here
123 LL | -> VacantEntry<'a, (), &'static ()> {
125 | ^ returning this value requires that `'new` must outlive `'static`
127 = help: consider replacing `'new` with `'static`
129 error: aborting due to 12 previous errors