mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
10 lines
370 B
Rust
10 lines
370 B
Rust
// 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() {}
|