mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 02:33:55 +00:00
8 lines
160 B
Rust
8 lines
160 B
Rust
fn foo(x:Box<dyn Fn(&u8, &u8)> , y: Vec<&u8>, z: &u8) {
|
|
y.push(z);
|
|
//~^ ERROR lifetime may not live long enough
|
|
//~| ERROR cannot borrow
|
|
}
|
|
|
|
fn main() { }
|