]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/underscore-lifetime/underscore-lifetime-elison-mismatch.rs
2 // ignore-compare-mode-nll
3 //[nll] compile-flags: -Z borrowck=mir
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