]> git.proxmox.com Git - rustc.git/blob - src/test/ui/underscore-lifetime/underscore-lifetime-elison-mismatch.rs
New upstream version 1.62.1+dfsg1
[rustc.git] / src / test / ui / underscore-lifetime / underscore-lifetime-elison-mismatch.rs
1 // revisions: base nll
2 // ignore-compare-mode-nll
3 //[nll] compile-flags: -Z borrowck=mir
4
5 fn foo(x: &mut Vec<&'_ u8>, y: &'_ u8) { x.push(y); }
6 //[base]~^ ERROR lifetime mismatch
7 //[nll]~^^ ERROR lifetime may not live long enough
8
9 fn main() {}