]> git.proxmox.com Git - rustc.git/blobdiff - src/tools/clippy/tests/ui/box_vec.stderr
Update upstream source from tag 'upstream/1.52.1+dfsg1'
[rustc.git] / src / tools / clippy / tests / ui / box_vec.stderr
diff --git a/src/tools/clippy/tests/ui/box_vec.stderr b/src/tools/clippy/tests/ui/box_vec.stderr
new file mode 100644 (file)
index 0000000..9b78933
--- /dev/null
@@ -0,0 +1,11 @@
+error: you seem to be trying to use `Box<Vec<T>>`. Consider using just `Vec<T>`
+  --> $DIR/box_vec.rs:14:18
+   |
+LL | pub fn test(foo: Box<Vec<bool>>) {
+   |                  ^^^^^^^^^^^^^^
+   |
+   = note: `-D clippy::box-vec` implied by `-D warnings`
+   = help: `Vec<T>` is already on the heap, `Box<Vec<T>>` makes an extra allocation
+
+error: aborting due to previous error
+