fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
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