fork/rust
git clone https://git.julia.blue/fork/rust
f3e1a954d2e
1.41.1
1error[E0161]: cannot move a value of type str: the size of str cannot be statically determined 2 --> $DIR/dst-rvalue.rs:6:28 3 | 4LL | let _x: Box<str> = box *"hello world"; 5 | ^^^^^^^^^^^^^^ 6 7error[E0161]: cannot move a value of type [isize]: the size of [isize] cannot be statically determined 8 --> $DIR/dst-rvalue.rs:11:32 9 | 10LL | let _x: Box<[isize]> = box *array; 11 | ^^^^^^ 12 13error[E0507]: cannot move out of a shared reference 14 --> $DIR/dst-rvalue.rs:6:28 15 | 16LL | let _x: Box<str> = box *"hello world"; 17 | ^^^^^^^^^^^^^^ move occurs because value has type `str`, which does not implement the `Copy` trait 18 19error[E0508]: cannot move out of type `[isize]`, a non-copy slice 20 --> $DIR/dst-rvalue.rs:11:32 21 | 22LL | let _x: Box<[isize]> = box *array; 23 | ^^^^^^ 24 | | 25 | cannot move out of here 26 | move occurs because `*array` has type `[isize]`, which does not implement the `Copy` trait 27 28error: aborting due to 4 previous errors 29 30Some errors have detailed explanations: E0161, E0507, E0508. 31For more information about an error, try `rustc --explain E0161`.