1 error[E0382]: use of moved value: `b`
2 --> $DIR/borrowck-consume-unsize-vec.rs:8:13
4 LL | fn foo(b: Box<[i32;5]>) {
5 | - move occurs because `b` has type `Box<[i32; 5]>`, which does not implement the `Copy` trait
9 | ^ value used here after move
11 note: consider changing this parameter type in function `consume` to borrow instead if owning the value isn't necessary
12 --> $DIR/borrowck-consume-unsize-vec.rs:3:15
14 LL | fn consume(_: Box<[i32]>) {
15 | ------- ^^^^^^^^^^ this parameter takes ownership of the value
18 help: consider cloning the value if the performance cost is acceptable
20 LL | consume(b.clone());
23 error: aborting due to previous error
25 For more information about this error, try `rustc --explain E0382`.