2022-05-22 06:05:15 +00:00
|
|
|
// FIXME(nll): On NLL stabilization, this should be replaced by
|
|
|
|
// `issue-90170-elision-mismatch-nll.rs`. Compiletest has
|
|
|
|
// problems with rustfix and revisions.
|
|
|
|
// ignore-compare-mode-nll
|
|
|
|
|
2021-11-02 20:22:41 +00:00
|
|
|
// run-rustfix
|
|
|
|
|
|
|
|
pub fn foo<'a>(x: &mut Vec<&'a u8>, y: &'a u8) { x.push(y); } //~ ERROR lifetime mismatch
|
|
|
|
|
|
|
|
pub fn foo2<'a>(x: &mut Vec<&'a u8>, y: &'a u8) { x.push(y); } //~ ERROR lifetime mismatch
|
|
|
|
|
|
|
|
pub fn foo3<'a>(_other: &'a [u8], x: &mut Vec<&'a u8>, y: &'a u8) { x.push(y); } //~ ERROR lifetime mismatch
|
|
|
|
|
|
|
|
fn main() {}
|