2018-12-02 16:24:08 -06:00
|
|
|
// FIXME: Validation disabled until https://github.com/rust-lang/rust/pull/56161 lands
|
|
|
|
// compile-flags: -Zmiri-disable-validation
|
|
|
|
|
2018-08-24 12:50:31 -05:00
|
|
|
use std::collections::VecDeque;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let mut dst = VecDeque::new();
|
|
|
|
dst.push_front(Box::new(1));
|
|
|
|
dst.push_front(Box::new(2));
|
|
|
|
dst.pop_back();
|
|
|
|
|
|
|
|
let mut src = VecDeque::new();
|
|
|
|
src.push_front(Box::new(2));
|
|
|
|
dst.append(&mut src);
|
|
|
|
for a in dst {
|
|
|
|
assert_eq!(*a, 2);
|
|
|
|
}
|
|
|
|
}
|