mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-17 20:35:53 +00:00
10 lines
371 B
Plaintext
10 lines
371 B
Plaintext
//@ 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() {}
|