rust/tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-lateb...

7 lines
129 B
Rust

fn foo<'a,'b>(x: &mut Vec<&'a u8>, y: &'b u8) {
x.push(y);
//~^ ERROR lifetime may not live long enough
}
fn main() { }