summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/vec_resize_to_zero.stderr
blob: 8851e9f38be49cc776b8efd70bb280a57738c6fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
error: emptying a vector with `resize`
  --> $DIR/vec_resize_to_zero.rs:7:5
   |
LL |     v.resize(0, 5);
   |     ^^------------
   |       |
   |       help: ...or you can empty the vector with: `clear()`
   |
   = help: the arguments may be inverted...
   = note: `-D clippy::vec-resize-to-zero` implied by `-D warnings`

error: aborting due to previous error