1 error: you seem to be trying to use `Box<Vec<..>>`. Consider using just `Vec<..>`
2 --> $DIR/box_collection.rs:21:14
4 LL | fn test(foo: Box<Vec<bool>>) {}
7 = note: `-D clippy::box-collection` implied by `-D warnings`
8 = help: `Vec<..>` is already on the heap, `Box<Vec<..>>` makes an extra allocation
10 error: you seem to be trying to use `Box<String>`. Consider using just `String`
11 --> $DIR/box_collection.rs:28:15
13 LL | fn test3(foo: Box<String>) {}
16 = help: `String` is already on the heap, `Box<String>` makes an extra allocation
18 error: you seem to be trying to use `Box<HashMap<..>>`. Consider using just `HashMap<..>`
19 --> $DIR/box_collection.rs:30:15
21 LL | fn test4(foo: Box<HashMap<String, String>>) {}
22 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
24 = help: `HashMap<..>` is already on the heap, `Box<HashMap<..>>` makes an extra allocation
26 error: aborting due to 3 previous errors