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