]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/vec_resize_to_zero.stderr
Rollup merge of #102412 - joboet:dont_panic, r=m-ou-se
[rust.git] / src / tools / clippy / tests / ui / vec_resize_to_zero.stderr
1 error: emptying a vector with `resize`
2   --> $DIR/vec_resize_to_zero.rs:7:5
3    |
4 LL |     v.resize(0, 5);
5    |     ^^------------
6    |       |
7    |       help: ...or you can empty the vector with: `clear()`
8    |
9    = help: the arguments may be inverted...
10    = note: `-D clippy::vec-resize-to-zero` implied by `-D warnings`
11
12 error: aborting due to previous error
13