]>
Commit | Line | Data |
---|---|---|
f20569fa XL |
1 | error: local variable doesn't need to be boxed here |
2 | --> $DIR/escape_analysis.rs:40:13 | |
3 | | | |
4 | LL | fn warn_arg(x: Box<A>) { | |
5 | | ^ | |
6 | | | |
7 | = note: `-D clippy::boxed-local` implied by `-D warnings` | |
8 | ||
9 | error: local variable doesn't need to be boxed here | |
10 | --> $DIR/escape_analysis.rs:131:12 | |
11 | | | |
12 | LL | pub fn new(_needs_name: Box<PeekableSeekable<&()>>) -> () {} | |
13 | | ^^^^^^^^^^^ | |
14 | ||
15 | error: local variable doesn't need to be boxed here | |
16 | --> $DIR/escape_analysis.rs:195:44 | |
17 | | | |
18 | LL | fn default_impl_x(self: Box<Self>, x: Box<u32>) -> u32 { | |
19 | | ^ | |
20 | ||
21 | error: local variable doesn't need to be boxed here | |
22 | --> $DIR/escape_analysis.rs:202:16 | |
23 | | | |
24 | LL | fn foo(x: Box<u32>) {} | |
25 | | ^ | |
26 | ||
27 | error: aborting due to 4 previous errors | |
28 |