rust/src/test/ui/underscore-lifetime/underscore-lifetime-elison-mismatch.rs

4 lines
96 B
Rust
Raw Normal View History

fn foo(x: &mut Vec<&'_ u8>, y: &'_ u8) { x.push(y); } //~ ERROR lifetime mismatch
fn main() {}