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

7 lines
116 B
Rust

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