]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/vec_resize_to_zero.stderr
New upstream version 1.74.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / vec_resize_to_zero.stderr
CommitLineData
f20569fa 1error: emptying a vector with `resize`
f2b60f7d 2 --> $DIR/vec_resize_to_zero.rs:7:5
f20569fa 3 |
f2b60f7d
FG
4LL | 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
13error: aborting due to previous error
14