1 error: `drain(..)` used on a `Vec`
2 --> $DIR/iter_with_drain.rs:11:34
4 LL | let mut a: BinaryHeap<_> = a.drain(..).collect();
5 | ^^^^^^^^^ help: try this: `into_iter()`
7 = note: `-D clippy::iter-with-drain` implied by `-D warnings`
9 error: `drain(..)` used on a `VecDeque`
10 --> $DIR/iter_with_drain.rs:14:27
12 LL | let mut a: Vec<_> = a.drain(..).collect();
13 | ^^^^^^^^^ help: try this: `into_iter()`
15 error: `drain(..)` used on a `Vec`
16 --> $DIR/iter_with_drain.rs:15:34
18 LL | let mut a: HashMap<_, _> = a.drain(..).map(|x| (x.clone(), x)).collect();
19 | ^^^^^^^^^ help: try this: `into_iter()`
21 error: `drain(..)` used on a `Vec`
22 --> $DIR/iter_with_drain.rs:21:34
24 LL | let mut a: BinaryHeap<_> = a.drain(0..).collect();
25 | ^^^^^^^^^^ help: try this: `into_iter()`
27 error: `drain(..)` used on a `VecDeque`
28 --> $DIR/iter_with_drain.rs:24:27
30 LL | let mut a: Vec<_> = a.drain(..a.len()).collect();
31 | ^^^^^^^^^^^^^^^^ help: try this: `into_iter()`
33 error: `drain(..)` used on a `Vec`
34 --> $DIR/iter_with_drain.rs:25:34
36 LL | let mut a: HashMap<_, _> = a.drain(0..a.len()).map(|x| (x.clone(), x)).collect();
37 | ^^^^^^^^^^^^^^^^^ help: try this: `into_iter()`
39 error: aborting due to 6 previous errors