11error: lifetime may not live long enough
2- --> $DIR/empty-binders-err.rs:22 :12
2+ --> $DIR/empty-binders-err.rs:20 :12
33 |
4- LL | fn covariance<'a, 'b, 'upper, 'lower >(v: bool)
4+ LL | fn covariance<'a, 'b, 'upper>(v: bool)
55 | -- ------ lifetime `'upper` defined here
66 | |
77 | lifetime `'a` defined here
@@ -12,9 +12,9 @@ LL | let _: &'upper () = match v {
1212 = help: consider adding the following bound: `'a: 'upper`
1313
1414error: lifetime may not live long enough
15- --> $DIR/empty-binders-err.rs:22 :12
15+ --> $DIR/empty-binders-err.rs:20 :12
1616 |
17- LL | fn covariance<'a, 'b, 'upper, 'lower >(v: bool)
17+ LL | fn covariance<'a, 'b, 'upper>(v: bool)
1818 | -- ------ lifetime `'upper` defined here
1919 | |
2020 | lifetime `'b` defined here
@@ -30,10 +30,10 @@ help: the following changes may resolve your lifetime errors
3030 = help: add bound `'b: 'upper`
3131
3232error: lifetime may not live long enough
33- --> $DIR/empty-binders-err.rs:39 :12
33+ --> $DIR/empty-binders-err.rs:35 :12
3434 |
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
3737 | |
3838 | lifetime `'a` defined here
3939...
@@ -43,10 +43,10 @@ LL | let _: fn(&'lower ()) = match v {
4343 = help: consider adding the following bound: `'lower: 'a`
4444
4545error: lifetime may not live long enough
46- --> $DIR/empty-binders-err.rs:54 :12
46+ --> $DIR/empty-binders-err.rs:48 :12
4747 |
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
5050 | |
5151 | lifetime `'a` defined here
5252...
0 commit comments