]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/vec_resize_to_zero.stderr
Auto merge of #76931 - oli-obk:const_prop_inline_lint_madness, r=wesleywiser
[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:5:5
3    |
4 LL |     vec![1, 2, 3, 4, 5].resize(0, 5);
5    |     ^^^^^^^^^^^^^^^^^^^^------------
6    |                         |
7    |                         help: ...or you can empty the vector with: `clear()`
8    |
9    = note: `-D clippy::vec-resize-to-zero` implied by `-D warnings`
10    = help: the arguments may be inverted...
11
12 error: aborting due to previous error
13