fork/rust
git clone https://git.julia.blue/fork/rust
73528e339aa
1.40.0
1error[E0623]: lifetime mismatch 2 --> $DIR/region-multiple-lifetime-bounds-on-fns-where-clause.rs:9:10 3 | 4LL | fn b<'a, 'b, 'c>(x: &mut &'a isize, y: &mut &'b isize, z: &mut &'c isize) { 5 | --------- --------- these two types are declared with different lifetimes... 6LL | // Illegal now because there is no `'b:'a` declaration. 7LL | *x = *y; 8 | ^^ ...but data from `y` flows into `x` here 9 10error[E0623]: lifetime mismatch 11 --> $DIR/region-multiple-lifetime-bounds-on-fns-where-clause.rs:10:10 12 | 13LL | fn b<'a, 'b, 'c>(x: &mut &'a isize, y: &mut &'b isize, z: &mut &'c isize) { 14 | --------- --------- 15 | | 16 | these two types are declared with different lifetimes... 17... 18LL | *z = *y; 19 | ^^ ...but data from `y` flows into `z` here 20 21error[E0623]: lifetime mismatch 22 --> $DIR/region-multiple-lifetime-bounds-on-fns-where-clause.rs:16:7 23 | 24LL | fn c<'a,'b, 'c>(x: &mut &'a isize, y: &mut &'b isize, z: &mut &'c isize) { 25 | --------- --------- these two types are declared with different lifetimes... 26... 27LL | a(x, y, z); 28 | ^ ...but data from `y` flows into `x` here 29 30error[E0308]: mismatched types 31 --> $DIR/region-multiple-lifetime-bounds-on-fns-where-clause.rs:22:56 32 | 33LL | let _: fn(&mut &isize, &mut &isize, &mut &isize) = a; 34 | ^ expected concrete lifetime, found bound lifetime parameter 35 | 36 = note: expected type `for<'r, 's, 't0, 't1, 't2, 't3> fn(&'r mut &'s isize, &'t0 mut &'t1 isize, &'t2 mut &'t3 isize)` 37 found type `for<'r, 's, 't0> fn(&'r mut &isize, &'s mut &isize, &'t0 mut &isize) {a::<'_, '_, '_>}` 38 39error: aborting due to 4 previous errors 40 41For more information about this error, try `rustc --explain E0308`.