]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/unnecessary_box_returns.stderr
New upstream version 1.74.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / unnecessary_box_returns.stderr
CommitLineData
353b0b11
FG
1error: boxed return of the sized type `usize`
2 --> $DIR/unnecessary_box_returns.rs:5:22
3 |
4LL | 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
11error: boxed return of the sized type `usize`
781aab86 12 --> $DIR/unnecessary_box_returns.rs:19:22
353b0b11
FG
13 |
14LL | 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
19error: boxed return of the sized type `usize`
781aab86 20 --> $DIR/unnecessary_box_returns.rs:27:20
353b0b11
FG
21 |
22LL | 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
27error: boxed return of the sized type `Foo`
781aab86 28 --> $DIR/unnecessary_box_returns.rs:33:19
353b0b11
FG
29 |
30LL | 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
35error: aborting due to 4 previous errors
36