1 error[E0623]: lifetime mismatch
2 --> $DIR/regions-lifetime-bounds-on-fns.rs:8:10
4 LL | fn b<'a, 'b>(x: &mut &'a isize, y: &mut &'b isize) {
5 | --------- --------- these two types are declared with different lifetimes...
6 LL | // Illegal now because there is no `'b:'a` declaration.
8 | ^^ ...but data from `y` flows into `x` here
10 error[E0623]: lifetime mismatch
11 --> $DIR/regions-lifetime-bounds-on-fns.rs:14:7
13 LL | fn c<'a,'b>(x: &mut &'a isize, y: &mut &'b isize) {
14 | --------- --------- these two types are declared with different lifetimes...
17 | ^ ...but data from `y` flows into `x` here
19 error[E0308]: mismatched types
20 --> $DIR/regions-lifetime-bounds-on-fns.rs:20:43
22 LL | let _: fn(&mut &isize, &mut &isize) = a;
23 | ---------------------------- ^ expected concrete lifetime, found bound lifetime parameter
25 | expected due to this
27 = note: expected fn pointer `for<'r, 's, 't0, 't1> fn(&'r mut &'s isize, &'t0 mut &'t1 isize)`
28 found fn item `for<'r, 's> fn(&'r mut &isize, &'s mut &isize) {a::<'_, '_>}`
30 error: aborting due to 3 previous errors
32 Some errors have detailed explanations: E0308, E0623.
33 For more information about an error, try `rustc --explain E0308`.