]> git.proxmox.com Git - rustc.git/blob - src/test/ui/borrowck/borrowck-consume-unsize-vec.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / borrowck / borrowck-consume-unsize-vec.stderr
1 error[E0382]: use of moved value: `b`
2 --> $DIR/borrowck-consume-unsize-vec.rs:8:13
3 |
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
6 LL | consume(b);
7 | - value moved here
8 LL | consume(b);
9 | ^ value used here after move
10
11 error: aborting due to previous error
12
13 For more information about this error, try `rustc --explain E0382`.