1 error: `Vec<T>` is already on the heap, the boxing is unnecessary
2 --> $DIR/vec_box_sized.rs:12:14
4 LL | const C: Vec<Box<i32>> = Vec::new();
5 | ^^^^^^^^^^^^^ help: try: `Vec<i32>`
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:13:15
12 LL | static S: Vec<Box<i32>> = Vec::new();
13 | ^^^^^^^^^^^^^ help: try: `Vec<i32>`
15 error: `Vec<T>` is already on the heap, the boxing is unnecessary
16 --> $DIR/vec_box_sized.rs:16:21
18 LL | sized_type: Vec<Box<SizedStruct>>,
19 | ^^^^^^^^^^^^^^^^^^^^^ help: try: `Vec<SizedStruct>`
21 error: `Vec<T>` is already on the heap, the boxing is unnecessary
22 --> $DIR/vec_box_sized.rs:19:14
24 LL | struct A(Vec<Box<SizedStruct>>);
25 | ^^^^^^^^^^^^^^^^^^^^^ help: try: `Vec<SizedStruct>`
27 error: `Vec<T>` is already on the heap, the boxing is unnecessary
28 --> $DIR/vec_box_sized.rs:20:18
30 LL | struct B(Vec<Vec<Box<(u32)>>>);
31 | ^^^^^^^^^^^^^^^ help: try: `Vec<u32>`
33 error: `Vec<T>` is already on the heap, the boxing is unnecessary
34 --> $DIR/vec_box_sized.rs:48:23
36 LL | pub fn f() -> Vec<Box<S>> {
37 | ^^^^^^^^^^^ help: try: `Vec<S>`
39 error: aborting due to 6 previous errors