2020-06-09 14:36:01 +00:00
|
|
|
error: emptying a vector with `resize`
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/vec_resize_to_zero.rs:7:5
|
2020-06-09 14:36:01 +00:00
|
|
|
|
|
2022-08-31 13:24:45 +00:00
|
|
|
LL | v.resize(0, 5);
|
|
|
|
| ^^------------
|
|
|
|
| |
|
|
|
|
| help: ...or you can empty the vector with: `clear()`
|
2020-06-09 14:36:01 +00:00
|
|
|
|
|
|
|
|
= help: the arguments may be inverted...
|
2022-09-22 16:04:22 +00:00
|
|
|
= note: `-D clippy::vec-resize-to-zero` implied by `-D warnings`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::vec_resize_to_zero)]`
|
2020-06-09 14:36:01 +00:00
|
|
|
|
2023-11-21 17:08:42 +00:00
|
|
|
error: aborting due to 1 previous error
|
2020-06-09 14:36:01 +00:00
|
|
|
|