]> git.lizzy.rs Git - rust.git/blob - tests/ui/box_vec.stderr
rustup and compile-fail -> ui test move
[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:17:18
3    |
4 17 | pub fn test(foo: Box<Vec<bool>>) { //~ ERROR you seem to be trying to use `Box<Vec<T>>`
5    |                  ^^^^^^^^^^^^^^
6    |
7    = note: #[deny(box_vec)] implied by #[deny(clippy)]
8 note: lint level defined here
9   --> $DIR/box_vec.rs:4:9
10    |
11 4  | #![deny(clippy)]
12    |         ^^^^^^
13    = help: `Vec<T>` is already on the heap, `Box<Vec<T>>` makes an extra allocation.
14
15 error: aborting due to previous error
16