]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/vec_resize_to_zero.stderr
Move MSRV tests into the lint specific test files
[rust.git] / tests / ui / vec_resize_to_zero.stderr
index feb846298c656878246193fd8968b2c67127b260..8851e9f38be49cc776b8efd70bb280a57738c6fd 100644 (file)
@@ -1,13 +1,13 @@
 error: emptying a vector with `resize`
-  --> $DIR/vec_resize_to_zero.rs:5:5
+  --> $DIR/vec_resize_to_zero.rs:7:5
    |
-LL |     vec![1, 2, 3, 4, 5].resize(0, 5);
-   |     ^^^^^^^^^^^^^^^^^^^^------------
-   |                         |
-   |                         help: ...or you can empty the vector with: `clear()`
+LL |     v.resize(0, 5);
+   |     ^^------------
+   |       |
+   |       help: ...or you can empty the vector with: `clear()`
    |
-   = note: `-D clippy::vec-resize-to-zero` implied by `-D warnings`
    = help: the arguments may be inverted...
+   = note: `-D clippy::vec-resize-to-zero` implied by `-D warnings`
 
 error: aborting due to previous error