mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-27 15:11:01 +03:00
source code
This commit is contained in:
10
libs/magnum-opus/tests/compile-fail/repacketize.rs
Normal file
10
libs/magnum-opus/tests/compile-fail/repacketize.rs
Normal file
@@ -0,0 +1,10 @@
|
||||
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 []);
|
||||
}
|
||||
Reference in New Issue
Block a user