summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/box_vec.stderr
blob: 9b789334baeecb8db138d49f08db25a68509af78 (plain)
1
2
3
4
5
6
7
8
9
10
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