]> git.proxmox.com Git - rustc.git/blob - src/test/ui/lifetimes/issue-90170-elision-mismatch.rs
New upstream version 1.58.1+dfsg1
[rustc.git] / src / test / ui / lifetimes / issue-90170-elision-mismatch.rs
1 // run-rustfix
2
3 pub fn foo(x: &mut Vec<&u8>, y: &u8) { x.push(y); } //~ ERROR lifetime mismatch
4
5 pub fn foo2(x: &mut Vec<&'_ u8>, y: &u8) { x.push(y); } //~ ERROR lifetime mismatch
6
7 pub fn foo3<'a>(_other: &'a [u8], x: &mut Vec<&u8>, y: &u8) { x.push(y); } //~ ERROR lifetime mismatch
8
9 fn main() {}