rust-clippy/tests/ui/vec_box_sized.stderr

11 lines
325 B
Text
Raw Normal View History

error: `Vec<T>` is already on the heap, the boxing is unnecessary.
--> $DIR/vec_box_sized.rs:10:17
|
2018-12-27 15:57:55 +00:00
LL | sized_type: Vec<Box<SizedStruct>>,
2018-12-13 17:34:16 +00:00
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `Vec<SizedStruct>`
|
= note: `-D clippy::vec-box` implied by `-D warnings`
error: aborting due to previous error