rustdesk/libs/magnum-opus/tests/compile-fail/repacketize.rs

11 lines
243 B
Rust
Raw Normal View History

2021-03-29 15:59:14 +08:00
extern crate opus;
fn main() {
let mut rp = opus::Repacketizer::new().unwrap();
let mut wip = rp.begin().cat_move(
&[1, 2, 3]
//~^ ERROR borrowed value does not live long enough
).unwrap();
wip.out(&mut []);
}