]> git.lizzy.rs Git - rust.git/blob - tests/ui/vec_resize_to_zero.stderr
Better handle method/function calls
[rust.git] / 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