mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-24 18:42:27 +00:00
8 lines
150 B
Rust
8 lines
150 B
Rust
fn foo(x:fn(&u8, &u8), y: Vec<&u8>, z: &u8) {
|
|
y.push(z);
|
|
//~^ ERROR lifetime may not live long enough
|
|
//~| ERROR cannot borrow
|
|
}
|
|
|
|
fn main() { }
|