]>
Commit | Line | Data |
---|---|---|
f20569fa | 1 | error: emptying a vector with `resize` |
f2b60f7d | 2 | --> $DIR/vec_resize_to_zero.rs:7:5 |
f20569fa | 3 | | |
f2b60f7d FG |
4 | LL | v.resize(0, 5); |
5 | | ^^------------ | |
6 | | | | |
7 | | help: ...or you can empty the vector with: `clear()` | |
f20569fa | 8 | | |
f20569fa | 9 | = help: the arguments may be inverted... |
2b03887a | 10 | = note: `-D clippy::vec-resize-to-zero` implied by `-D warnings` |
781aab86 | 11 | = help: to override `-D warnings` add `#[allow(clippy::vec_resize_to_zero)]` |
f20569fa XL |
12 | |
13 | error: aborting due to previous error | |
14 |