rust/tests/ui/vec_resize_to_zero.stderr

15 lines
450 B
Plaintext
Raw Normal View History

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