]> git.lizzy.rs Git - rust.git/blob - tests/ui/extend_with_drain.stderr
Addition `manual_map` test for `unsafe` blocks
[rust.git] / tests / ui / extend_with_drain.stderr
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
3    |
4 LL |     vec2.extend(vec1.drain(..));
5    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `vec2.append(&mut vec1)`
6    |
7    = note: `-D clippy::extend-with-drain` implied by `-D warnings`
8
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
11    |
12 LL |     vec4.extend(vec3.drain(..));
13    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `vec4.append(&mut vec3)`
14
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
17    |
18 LL |     vec11.extend(return_vector().drain(..));
19    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `vec11.append(&mut return_vector())`
20
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
23    |
24 LL |     y.extend(ref_x.drain(..));
25    |     ^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `y.append(ref_x)`
26
27 error: aborting due to 4 previous errors
28