]>
Commit | Line | Data |
---|---|---|
353b0b11 FG |
1 | error: boxed return of the sized type `usize` |
2 | --> $DIR/unnecessary_box_returns.rs:5:22 | |
3 | | | |
4 | LL | fn baz(&self) -> Box<usize>; | |
5 | | ^^^^^^^^^^ help: try: `usize` | |
6 | | | |
7 | = help: changing this also requires a change to the return expressions in this function | |
8 | = note: `-D clippy::unnecessary-box-returns` implied by `-D warnings` | |
781aab86 | 9 | = help: to override `-D warnings` add `#[allow(clippy::unnecessary_box_returns)]` |
353b0b11 FG |
10 | |
11 | error: boxed return of the sized type `usize` | |
781aab86 | 12 | --> $DIR/unnecessary_box_returns.rs:19:22 |
353b0b11 FG |
13 | | |
14 | LL | fn baz(&self) -> Box<usize> { | |
15 | | ^^^^^^^^^^ help: try: `usize` | |
16 | | | |
17 | = help: changing this also requires a change to the return expressions in this function | |
18 | ||
19 | error: boxed return of the sized type `usize` | |
781aab86 | 20 | --> $DIR/unnecessary_box_returns.rs:27:20 |
353b0b11 FG |
21 | | |
22 | LL | fn bxed_usize() -> Box<usize> { | |
23 | | ^^^^^^^^^^ help: try: `usize` | |
24 | | | |
25 | = help: changing this also requires a change to the return expressions in this function | |
26 | ||
27 | error: boxed return of the sized type `Foo` | |
781aab86 | 28 | --> $DIR/unnecessary_box_returns.rs:33:19 |
353b0b11 FG |
29 | | |
30 | LL | fn _bxed_foo() -> Box<Foo> { | |
31 | | ^^^^^^^^ help: try: `Foo` | |
32 | | | |
33 | = help: changing this also requires a change to the return expressions in this function | |
34 | ||
35 | error: aborting due to 4 previous errors | |
36 |