1 error: `Vec<T>` is already on the heap, the boxing is unnecessary
2 --> $DIR/vec_box_sized.rs:14:21
4 LL | sized_type: Vec<Box<SizedStruct>>,
5 | ^^^^^^^^^^^^^^^^^^^^^ help: try: `Vec<SizedStruct>`
7 = note: `-D clippy::vec-box` implied by `-D warnings`
9 error: `Vec<T>` is already on the heap, the boxing is unnecessary
10 --> $DIR/vec_box_sized.rs:17:14
12 LL | struct A(Vec<Box<SizedStruct>>);
13 | ^^^^^^^^^^^^^^^^^^^^^ help: try: `Vec<SizedStruct>`
15 error: `Vec<T>` is already on the heap, the boxing is unnecessary
16 --> $DIR/vec_box_sized.rs:18:18
18 LL | struct B(Vec<Vec<Box<(u32)>>>);
19 | ^^^^^^^^^^^^^^^ help: try: `Vec<u32>`
21 error: `Vec<T>` is already on the heap, the boxing is unnecessary
22 --> $DIR/vec_box_sized.rs:46:23
24 LL | pub fn f() -> Vec<Box<S>> {
25 | ^^^^^^^^^^^ help: try: `Vec<S>`
27 error: aborting due to 4 previous errors