]> git.lizzy.rs Git - rust.git/blob - tests/ui/box_vec.stderr
Auto merge of #88214 - notriddle:notriddle/for-loop-span-drop-temps-mut, r=nagisa
[rust.git] / tests / ui / box_vec.stderr
1 error: you seem to be trying to use `Box<Vec<T>>`. Consider using just `Vec<T>`
2   --> $DIR/box_vec.rs:18:14
3    |
4 LL | fn test(foo: Box<Vec<bool>>) {}
5    |              ^^^^^^^^^^^^^^
6    |
7    = note: `-D clippy::box-vec` implied by `-D warnings`
8    = help: `Vec<T>` is already on the heap, `Box<Vec<T>>` makes an extra allocation
9
10 error: aborting due to previous error
11