summaryrefslogtreecommitdiffstats
path: root/tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-using-fn-items.rs
blob: 2f67750d89b743ed80149cc85bb31a1c190905cd (plain)
1
2
3
4
5
6
7
fn foo(x:fn(&u8, &u8), y: Vec<&u8>, z: &u8) {
  y.push(z);
  //~^ ERROR lifetime may not live long enough
  //~| ERROR cannot borrow
}

fn main() { }