2020-05-22 17:07:09 -05:00
|
|
|
error: emptying a vector with `resize`
|
2022-06-06 10:17:38 -05:00
|
|
|
--> $DIR/vec_resize_to_zero.rs:7:5
|
2020-05-22 17:07:09 -05:00
|
|
|
|
|
2022-06-06 10:17:38 -05:00
|
|
|
LL | v.resize(0, 5);
|
|
|
|
| ^^------------
|
|
|
|
| |
|
|
|
|
| help: ...or you can empty the vector with: `clear()`
|
2020-05-22 17:07:09 -05:00
|
|
|
|
|
|
|
|
= note: `-D clippy::vec-resize-to-zero` implied by `-D warnings`
|
|
|
|
= help: the arguments may be inverted...
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|