summary refs log tree commit diff
path: root/src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-using-trait-objects.rs
blob: 324a5846c94ae4ee836c69ace1c498950a0f9e79 (plain)
1
2
3
4
5
fn foo(x:Box<Fn(&u8, &u8)> , y: Vec<&u8>, z: &u8) {
  y.push(z); //~ ERROR lifetime mismatch
}

fn main() { }