summaryrefslogtreecommitdiffstats
path: root/tests/ui/lifetimes/issue-90170-elision-mismatch.fixed
blob: bd85da1a763846fa5254ed6525e3de6624cab1f6 (plain)
1
2
3
4
5
6
7
8
9
// run-rustfix

pub fn foo<'a>(x: &mut Vec<&'a u8>, y: &'a u8) { x.push(y); } //~ ERROR lifetime may not live long enough

pub fn foo2<'a>(x: &mut Vec<&'a u8>, y: &'a u8) { x.push(y); } //~ ERROR lifetime may not live long enough

pub fn foo3<'a>(_other: &'a [u8], x: &mut Vec<&'a u8>, y: &'a u8) { x.push(y); } //~ ERROR lifetime may not live long enough

fn main() {}