1
1
error: lifetime may not live long enough
2
- --> $DIR/region-multiple-lifetime-bounds-on-fns-where-clause.rs:9 :5
2
+ --> $DIR/region-multiple-lifetime-bounds-on-fns-where-clause.rs:13 :5
3
3
|
4
4
LL | fn b<'a, 'b, 'c>(x: &mut &'a isize, y: &mut &'b isize, z: &mut &'c isize) {
5
5
| -- -- lifetime `'b` defined here
@@ -12,7 +12,7 @@ LL | *x = *y;
12
12
= help: consider adding the following bound: `'b: 'a`
13
13
14
14
error: lifetime may not live long enough
15
- --> $DIR/region-multiple-lifetime-bounds-on-fns-where-clause.rs:16 :5
15
+ --> $DIR/region-multiple-lifetime-bounds-on-fns-where-clause.rs:22 :5
16
16
|
17
17
LL | fn c<'a,'b, 'c>(x: &mut &'a isize, y: &mut &'b isize, z: &mut &'c isize) {
18
18
| -- -- lifetime `'b` defined here
@@ -28,7 +28,7 @@ LL | a(x, y, z);
28
28
= help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance
29
29
30
30
error[E0308]: mismatched types
31
- --> $DIR/region-multiple-lifetime-bounds-on-fns-where-clause.rs:22 :12
31
+ --> $DIR/region-multiple-lifetime-bounds-on-fns-where-clause.rs:30 :12
32
32
|
33
33
LL | let _: fn(&mut &isize, &mut &isize, &mut &isize) = a;
34
34
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other
@@ -37,7 +37,7 @@ LL | let _: fn(&mut &isize, &mut &isize, &mut &isize) = a;
37
37
found fn pointer `for<'r, 's, 't0> fn(&'r mut &isize, &'s mut &isize, &'t0 mut &isize)`
38
38
39
39
error[E0308]: mismatched types
40
- --> $DIR/region-multiple-lifetime-bounds-on-fns-where-clause.rs:22 :12
40
+ --> $DIR/region-multiple-lifetime-bounds-on-fns-where-clause.rs:30 :12
41
41
|
42
42
LL | let _: fn(&mut &isize, &mut &isize, &mut &isize) = a;
43
43
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other
@@ -46,7 +46,7 @@ LL | let _: fn(&mut &isize, &mut &isize, &mut &isize) = a;
46
46
found fn pointer `for<'r, 's, 't0> fn(&'r mut &isize, &'s mut &isize, &'t0 mut &isize)`
47
47
48
48
error[E0308]: mismatched types
49
- --> $DIR/region-multiple-lifetime-bounds-on-fns-where-clause.rs:22 :12
49
+ --> $DIR/region-multiple-lifetime-bounds-on-fns-where-clause.rs:30 :12
50
50
|
51
51
LL | let _: fn(&mut &isize, &mut &isize, &mut &isize) = a;
52
52
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other
0 commit comments