1 error: emptying a vector with `resize`
2 --> $DIR/vec_resize_to_zero.rs:5:5
4 LL | vec![1, 2, 3, 4, 5].resize(0, 5);
5 | ^^^^^^^^^^^^^^^^^^^^------------
7 | help: ...or you can empty the vector with: `clear()`
9 = note: `-D clippy::vec-resize-to-zero` implied by `-D warnings`
10 = help: the arguments may be inverted...
12 error: aborting due to previous error