rust/tests/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-latebound-regions.rs
2023-01-11 09:32:08 +00:00

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() { }