We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 526b8ae commit 5190b5bCopy full SHA for 5190b5b
tests/run-pass/vecdeque.rs
@@ -9,6 +9,14 @@ fn main() {
9
let mut src = VecDeque::new();
10
src.push_front(Box::new(2));
11
dst.append(&mut src);
12
+ for a in dst.iter() {
13
+ assert_eq!(**a, 2);
14
+ }
15
+
16
+ // Regression test for Debug and Diaplay impl's
17
+ println!("{:?} {:?}", dst, dst.iter());
18
+ println!("{:?}", VecDeque::<u32>::new().iter());
19
20
for a in dst {
21
assert_eq!(*a, 2);
22
}
tests/run-pass/vecdeque.stdout
@@ -0,0 +1,2 @@
1
+[2, 2] Iter([2, 2], [])
2
+Iter([], [])
0 commit comments