summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/unnecessary_box_returns.stderr
blob: b17512c10a1773c343d9c9eb9a7b7dd82f6698b4 (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
28
29
30
31
32
33
34
35
error: boxed return of the sized type `usize`
  --> $DIR/unnecessary_box_returns.rs:5:22
   |
LL |     fn baz(&self) -> Box<usize>;
   |                      ^^^^^^^^^^ help: try: `usize`
   |
   = help: changing this also requires a change to the return expressions in this function
   = note: `-D clippy::unnecessary-box-returns` implied by `-D warnings`

error: boxed return of the sized type `usize`
  --> $DIR/unnecessary_box_returns.rs:18:22
   |
LL |     fn baz(&self) -> Box<usize> {
   |                      ^^^^^^^^^^ help: try: `usize`
   |
   = help: changing this also requires a change to the return expressions in this function

error: boxed return of the sized type `usize`
  --> $DIR/unnecessary_box_returns.rs:25:20
   |
LL | fn bxed_usize() -> Box<usize> {
   |                    ^^^^^^^^^^ help: try: `usize`
   |
   = help: changing this also requires a change to the return expressions in this function

error: boxed return of the sized type `Foo`
  --> $DIR/unnecessary_box_returns.rs:30:19
   |
LL | fn _bxed_foo() -> Box<Foo> {
   |                   ^^^^^^^^ help: try: `Foo`
   |
   = help: changing this also requires a change to the return expressions in this function

error: aborting due to 4 previous errors