rust-clippy/tests/ui/vec_resize_to_zero.stderr
2022-08-19 10:54:55 -04:00

13 lines
364 B
Text

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