about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/box_collection.stderr
blob: 6de85d05a99f32b59eac0905a7f19967d8419f6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
error: you seem to be trying to use `Box<Vec<..>>`. Consider using just `Vec<..>`
  --> $DIR/box_collection.rs:21:14
   |
LL | fn test(foo: Box<Vec<bool>>) {}
   |              ^^^^^^^^^^^^^^
   |
   = note: `-D clippy::box-collection` implied by `-D warnings`
   = help: `Vec<..>` is already on the heap, `Box<Vec<..>>` makes an extra allocation

error: you seem to be trying to use `Box<String>`. Consider using just `String`
  --> $DIR/box_collection.rs:28:15
   |
LL | fn test3(foo: Box<String>) {}
   |               ^^^^^^^^^^^
   |
   = help: `String` is already on the heap, `Box<String>` makes an extra allocation

error: you seem to be trying to use `Box<HashMap<..>>`. Consider using just `HashMap<..>`
  --> $DIR/box_collection.rs:30:15
   |
LL | fn test4(foo: Box<HashMap<String, String>>) {}
   |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: `HashMap<..>` is already on the heap, `Box<HashMap<..>>` makes an extra allocation

error: aborting due to 3 previous errors