1 error: use of `extend` instead of `append` for adding the full range of a second vector
2 --> $DIR/extend_with_drain.rs:9:5
4 LL | vec2.extend(vec1.drain(..));
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `vec2.append(&mut vec1)`
7 = note: `-D clippy::extend-with-drain` implied by `-D warnings`
9 error: use of `extend` instead of `append` for adding the full range of a second vector
10 --> $DIR/extend_with_drain.rs:14:5
12 LL | vec4.extend(vec3.drain(..));
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `vec4.append(&mut vec3)`
15 error: use of `extend` instead of `append` for adding the full range of a second vector
16 --> $DIR/extend_with_drain.rs:18:5
18 LL | vec11.extend(return_vector().drain(..));
19 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `vec11.append(&mut return_vector())`
21 error: use of `extend` instead of `append` for adding the full range of a second vector
22 --> $DIR/extend_with_drain.rs:49:5
24 LL | y.extend(ref_x.drain(..));
25 | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `y.append(ref_x)`
27 error: aborting due to 4 previous errors