rust/tests/ui/lint/unused/unused-allocation.stderr

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