fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
865 B29 linesraw
1error: local variable doesn't need to be boxed here
2  --> $DIR/boxed_local.rs:40:13
3   |
4LL | fn warn_arg(x: Box<A>) {
5   |             ^
6   |
7   = note: `-D clippy::boxed-local` implied by `-D warnings`
8   = help: to override `-D warnings` add `#[allow(clippy::boxed_local)]`
9
10error: local variable doesn't need to be boxed here
11  --> $DIR/boxed_local.rs:123:12
12   |
13LL | pub fn new(_needs_name: Box<PeekableSeekable<&()>>) -> () {}
14   |            ^^^^^^^^^^^
15
16error: local variable doesn't need to be boxed here
17  --> $DIR/boxed_local.rs:188:44
18   |
19LL |         fn default_impl_x(self: Box<Self>, x: Box<u32>) -> u32 {
20   |                                            ^
21
22error: local variable doesn't need to be boxed here
23  --> $DIR/boxed_local.rs:196:16
24   |
25LL |         fn foo(x: Box<u32>) {}
26   |                ^
27
28error: aborting due to 4 previous errors
29