mirror of
https://github.com/rustdesk/magnum-opus.git
synced 2026-10-27 14:30:08 +00:00
Use compiletest to check Repacketizer lifetimes
This commit is contained in:
3 files changed
+34
No files matched your search
@@ -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