rust/tests/ui/underscore-lifetime/underscore-lifetime-elison-mismatch.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

5 lines
113 B
Rust
Raw Normal View History

2022-04-01 21:29:27 -05:00
fn foo(x: &mut Vec<&'_ u8>, y: &'_ u8) { x.push(y); }
2022-04-01 12:13:25 -05:00
//~^ ERROR lifetime may not live long enough
fn main() {}