]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-using-fn-items.rs
Rollup merge of #105555 - krasimirgg:llvm-int-opt-2, r=cuviper
[rust.git] / src / test / ui / lifetimes / lifetime-errors / ex3-both-anon-regions-using-fn-items.rs
1 fn foo(x:fn(&u8, &u8), y: Vec<&u8>, z: &u8) {
2   y.push(z);
3   //~^ ERROR lifetime may not live long enough
4   //~| ERROR cannot borrow
5 }
6
7 fn main() { }