]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/vec_box_sized.stderr
New upstream version 1.52.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / vec_box_sized.stderr
CommitLineData
f20569fa
XL
1error: `Vec<T>` is already on the heap, the boxing is unnecessary
2 --> $DIR/vec_box_sized.rs:14:21
3 |
4LL | sized_type: Vec<Box<SizedStruct>>,
5 | ^^^^^^^^^^^^^^^^^^^^^ help: try: `Vec<SizedStruct>`
6 |
7 = note: `-D clippy::vec-box` implied by `-D warnings`
8
9error: `Vec<T>` is already on the heap, the boxing is unnecessary
10 --> $DIR/vec_box_sized.rs:17:14
11 |
12LL | struct A(Vec<Box<SizedStruct>>);
13 | ^^^^^^^^^^^^^^^^^^^^^ help: try: `Vec<SizedStruct>`
14
15error: `Vec<T>` is already on the heap, the boxing is unnecessary
16 --> $DIR/vec_box_sized.rs:18:18
17 |
18LL | struct B(Vec<Vec<Box<(u32)>>>);
19 | ^^^^^^^^^^^^^^^ help: try: `Vec<u32>`
20
21error: `Vec<T>` is already on the heap, the boxing is unnecessary
22 --> $DIR/vec_box_sized.rs:46:23
23 |
24LL | pub fn f() -> Vec<Box<S>> {
25 | ^^^^^^^^^^^ help: try: `Vec<S>`
26
27error: aborting due to 4 previous errors
28