]> git.lizzy.rs Git - rust.git/blob - tests/ui/box_collection.stderr
Don't lint `if_same_then_else` with `if let` conditions
[rust.git] / tests / ui / box_collection.stderr
1 error: you seem to be trying to use `Box<Vec<..>>`. Consider using just `Vec<..>`
2   --> $DIR/box_collection.rs:21:14
3    |
4 LL | fn test(foo: Box<Vec<bool>>) {}
5    |              ^^^^^^^^^^^^^^
6    |
7    = note: `-D clippy::box-collection` implied by `-D warnings`
8    = help: `Vec<..>` is already on the heap, `Box<Vec<..>>` makes an extra allocation
9
10 error: you seem to be trying to use `Box<String>`. Consider using just `String`
11   --> $DIR/box_collection.rs:28:15
12    |
13 LL | fn test3(foo: Box<String>) {}
14    |               ^^^^^^^^^^^
15    |
16    = help: `String` is already on the heap, `Box<String>` makes an extra allocation
17
18 error: you seem to be trying to use `Box<HashMap<..>>`. Consider using just `HashMap<..>`
19   --> $DIR/box_collection.rs:30:15
20    |
21 LL | fn test4(foo: Box<HashMap<String, String>>) {}
22    |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
23    |
24    = help: `HashMap<..>` is already on the heap, `Box<HashMap<..>>` makes an extra allocation
25
26 error: aborting due to 3 previous errors
27