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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
338 B
Plaintext
Raw Normal View History

error: unnecessary allocation, use `&` instead
2025-01-02 21:22:42 +01:00
--> $DIR/unused-allocation.rs:4:9
|
2025-01-02 21:22:42 +01:00
LL | _ = Box::new([1]).len();
| ^^^^^^^^^^^^^
|
note: the lint level is defined here
2025-01-02 21:22:42 +01:00
--> $DIR/unused-allocation.rs:1:9
|
LL | #![deny(unused_allocation)]
| ^^^^^^^^^^^^^^^^^
2025-01-02 21:22:42 +01:00
error: aborting due to 1 previous error