mirror of https://github.com/rust-lang/rust.git
15 lines
338 B
Plaintext
15 lines
338 B
Plaintext
error: unnecessary allocation, use `&` instead
|
|
--> $DIR/unused-allocation.rs:4:9
|
|
|
|
|
LL | _ = Box::new([1]).len();
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
note: the lint level is defined here
|
|
--> $DIR/unused-allocation.rs:1:9
|
|
|
|
|
LL | #![deny(unused_allocation)]
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 1 previous error
|
|
|