1 error[E0596]: cannot borrow `y` as mutable, as it is not declared as mutable
2 --> $DIR/ex3-both-anon-regions-using-trait-objects.rs:11:3
4 LL | fn foo(x:Box<Fn(&u8, &u8)> , y: Vec<&u8>, z: &u8) {
5 | - help: consider changing this to be mutable: `mut y`
6 LL | y.push(z); //~ ERROR lifetime mismatch
7 | ^ cannot borrow as mutable
9 error: unsatisfied lifetime constraints
10 --> $DIR/ex3-both-anon-regions-using-trait-objects.rs:11:3
12 LL | fn foo(x:Box<Fn(&u8, &u8)> , y: Vec<&u8>, z: &u8) {
13 | - - let's call the lifetime of this reference `'1`
15 | let's call the lifetime of this reference `'2`
16 LL | y.push(z); //~ ERROR lifetime mismatch
17 | ^^^^^^^^^ argument requires that `'1` must outlive `'2`
19 error: aborting due to 2 previous errors
21 For more information about this error, try `rustc --explain E0596`.