1
1
error: lifetime may not live long enough
2
- --> $DIR/empty-binders-err.rs:22 :12
2
+ --> $DIR/empty-binders-err.rs:20 :12
3
3
|
4
- LL | fn covariance<'a, 'b, 'upper, 'lower >(v: bool)
4
+ LL | fn covariance<'a, 'b, 'upper>(v: bool)
5
5
| -- ------ lifetime `'upper` defined here
6
6
| |
7
7
| lifetime `'a` defined here
@@ -12,9 +12,9 @@ LL | let _: &'upper () = match v {
12
12
= help: consider adding the following bound: `'a: 'upper`
13
13
14
14
error: lifetime may not live long enough
15
- --> $DIR/empty-binders-err.rs:22 :12
15
+ --> $DIR/empty-binders-err.rs:20 :12
16
16
|
17
- LL | fn covariance<'a, 'b, 'upper, 'lower >(v: bool)
17
+ LL | fn covariance<'a, 'b, 'upper>(v: bool)
18
18
| -- ------ lifetime `'upper` defined here
19
19
| |
20
20
| lifetime `'b` defined here
@@ -30,10 +30,10 @@ help: the following changes may resolve your lifetime errors
30
30
= help: add bound `'b: 'upper`
31
31
32
32
error: lifetime may not live long enough
33
- --> $DIR/empty-binders-err.rs:39 :12
33
+ --> $DIR/empty-binders-err.rs:35 :12
34
34
|
35
- LL | fn contra_fn<'a, 'b, 'upper, ' lower>(v: bool)
36
- | -- ------ lifetime `'lower` defined here
35
+ LL | fn contra_fn<'a, 'b, 'lower>(v: bool)
36
+ | -- ------ lifetime `'lower` defined here
37
37
| |
38
38
| lifetime `'a` defined here
39
39
...
@@ -43,10 +43,10 @@ LL | let _: fn(&'lower ()) = match v {
43
43
= help: consider adding the following bound: `'lower: 'a`
44
44
45
45
error: lifetime may not live long enough
46
- --> $DIR/empty-binders-err.rs:54 :12
46
+ --> $DIR/empty-binders-err.rs:48 :12
47
47
|
48
- LL | fn contra_struct<'a, 'b, 'upper, ' lower>(v: bool)
49
- | -- ------ lifetime `'lower` defined here
48
+ LL | fn contra_struct<'a, 'b, 'lower>(v: bool)
49
+ | -- ------ lifetime `'lower` defined here
50
50
| |
51
51
| lifetime `'a` defined here
52
52
...
0 commit comments