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:17:5
36 LL | fn range_cov_key<'a, 'new>(v: RangeMut<'a, &'static (), ()>) -> RangeMut<'a, &'new (), ()> {
37 | ---- lifetime `'new` defined here
39 | ^ returning this value requires that `'new` must outlive `'static`
41 error: lifetime may not live long enough
42 --> $DIR/variance-btree-invariant-types.rs:20:5
44 LL | fn range_cov_val<'a, 'new>(v: RangeMut<'a, (), &'static ()>) -> RangeMut<'a, (), &'new ()> {
45 | ---- lifetime `'new` defined here
47 | ^ returning this value requires that `'new` must outlive `'static`
49 error: lifetime may not live long enough
50 --> $DIR/variance-btree-invariant-types.rs:23:5
52 LL | fn range_contra_key<'a, 'new>(v: RangeMut<'a, &'new (), ()>) -> RangeMut<'a, &'static (), ()> {
53 | ---- lifetime `'new` defined here
55 | ^ returning this value requires that `'new` must outlive `'static`
57 error: lifetime may not live long enough
58 --> $DIR/variance-btree-invariant-types.rs:26:5
60 LL | fn range_contra_val<'a, 'new>(v: RangeMut<'a, (), &'new ()>) -> RangeMut<'a, (), &'static ()> {
61 | ---- lifetime `'new` defined here
63 | ^ returning this value requires that `'new` must outlive `'static`
65 error: lifetime may not live long enough
66 --> $DIR/variance-btree-invariant-types.rs:31:5
68 LL | fn occ_cov_key<'a, 'new>(v: OccupiedEntry<'a, &'static (), ()>)
69 | ---- lifetime `'new` defined here
70 LL | -> OccupiedEntry<'a, &'new (), ()> {
72 | ^ returning this value requires that `'new` must outlive `'static`
74 error: lifetime may not live long enough
75 --> $DIR/variance-btree-invariant-types.rs:35:5
77 LL | fn occ_cov_val<'a, 'new>(v: OccupiedEntry<'a, (), &'static ()>)
78 | ---- lifetime `'new` defined here
79 LL | -> OccupiedEntry<'a, (), &'new ()> {
81 | ^ returning this value requires that `'new` must outlive `'static`
83 error: lifetime may not live long enough
84 --> $DIR/variance-btree-invariant-types.rs:39:5
86 LL | fn occ_contra_key<'a, 'new>(v: OccupiedEntry<'a, &'new (), ()>)
87 | ---- lifetime `'new` defined here
88 LL | -> OccupiedEntry<'a, &'static (), ()> {
90 | ^ returning this value requires that `'new` must outlive `'static`
92 error: lifetime may not live long enough
93 --> $DIR/variance-btree-invariant-types.rs:43:5
95 LL | fn occ_contra_val<'a, 'new>(v: OccupiedEntry<'a, (), &'new ()>)
96 | ---- lifetime `'new` defined here
97 LL | -> OccupiedEntry<'a, (), &'static ()> {
99 | ^ returning this value requires that `'new` must outlive `'static`
101 error: lifetime may not live long enough
102 --> $DIR/variance-btree-invariant-types.rs:48:5
104 LL | fn vac_cov_key<'a, 'new>(v: VacantEntry<'a, &'static (), ()>)
105 | ---- lifetime `'new` defined here
106 LL | -> VacantEntry<'a, &'new (), ()> {
108 | ^ returning this value requires that `'new` must outlive `'static`
110 error: lifetime may not live long enough
111 --> $DIR/variance-btree-invariant-types.rs:52:5
113 LL | fn vac_cov_val<'a, 'new>(v: VacantEntry<'a, (), &'static ()>)
114 | ---- lifetime `'new` defined here
115 LL | -> VacantEntry<'a, (), &'new ()> {
117 | ^ returning this value requires that `'new` must outlive `'static`
119 error: lifetime may not live long enough
120 --> $DIR/variance-btree-invariant-types.rs:56:5
122 LL | fn vac_contra_key<'a, 'new>(v: VacantEntry<'a, &'new (), ()>)
123 | ---- lifetime `'new` defined here
124 LL | -> VacantEntry<'a, &'static (), ()> {
126 | ^ returning this value requires that `'new` must outlive `'static`
128 error: lifetime may not live long enough
129 --> $DIR/variance-btree-invariant-types.rs:60:5
131 LL | fn vac_contra_val<'a, 'new>(v: VacantEntry<'a, (), &'new ()>)
132 | ---- lifetime `'new` defined here
133 LL | -> VacantEntry<'a, (), &'static ()> {
135 | ^ returning this value requires that `'new` must outlive `'static`
137 error: aborting due to 16 previous errors