]>
Commit | Line | Data |
---|---|---|
f20569fa XL |
1 | error: `Vec<T>` is already on the heap, the boxing is unnecessary |
2 | --> $DIR/test.rs:9:12 | |
3 | | | |
4 | LL | struct Foo(Vec<Box<u8>>); | |
5 | | ^^^^^^^^^^^^ help: try: `Vec<u8>` | |
6 | | | |
7 | = note: `-D clippy::vec-box` implied by `-D warnings` | |
8 | ||
9 | error: `Vec<T>` is already on the heap, the boxing is unnecessary | |
10 | --> $DIR/test.rs:10:12 | |
11 | | | |
12 | LL | struct Bar(Vec<Box<u32>>); | |
13 | | ^^^^^^^^^^^^^ help: try: `Vec<u32>` | |
14 | ||
15 | error: `Vec<T>` is already on the heap, the boxing is unnecessary | |
16 | --> $DIR/test.rs:13:18 | |
17 | | | |
18 | LL | struct FooBarBaz(Vec<Box<C>>); | |
19 | | ^^^^^^^^^^^ help: try: `Vec<C>` | |
20 | ||
21 | error: aborting due to 3 previous errors | |
22 |