fork/rust

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

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

master
519 B20 linesraw
1error: unnecessary allocation, use `&` instead
2  --> $DIR/unused-allocation.rs:5:9
3   |
4LL |     _ = (#[rustc_box] Box::new([1])).len();
5   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6   |
7note: the lint level is defined here
8  --> $DIR/unused-allocation.rs:2:9
9   |
10LL | #![deny(unused_allocation)]
11   |         ^^^^^^^^^^^^^^^^^
12
13error: unnecessary allocation, use `&` instead
14  --> $DIR/unused-allocation.rs:6:9
15   |
16LL |     _ = Box::new([1]).len();
17   |         ^^^^^^^^^^^^^
18
19error: aborting due to 2 previous errors
20