mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-11 08:05:12 +00:00
14 lines
436 B
Plaintext
14 lines
436 B
Plaintext
error: emptying a vector with `resize`
|
|
--> $DIR/vec_resize_to_zero.rs:5:5
|
|
|
|
|
LL | vec![1, 2, 3, 4, 5].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
|
|
|