1 2 3 4 5 6 7
fn foo(x:Box<dyn Fn(&u8, &u8)> , y: Vec<&u8>, z: &u8) { y.push(z); //~^ ERROR lifetime may not live long enough //~| ERROR cannot borrow } fn main() { }