]> git.lizzy.rs Git - rust.git/blob - src/test/ui/dst/dst-rvalue.stderr
Rollup merge of #53376 - frewsxcv:frewsxcv-copy, r=GuillaumeGomez
[rust.git] / src / test / ui / dst / dst-rvalue.stderr
1 error[E0161]: cannot move a value of type str: the size of str cannot be statically determined
2   --> $DIR/dst-rvalue.rs:16:28
3    |
4 LL |     let _x: Box<str> = box *"hello world";
5    |                            ^^^^^^^^^^^^^^
6
7 error[E0161]: cannot move a value of type [isize]: the size of [isize] cannot be statically determined
8   --> $DIR/dst-rvalue.rs:21:32
9    |
10 LL |     let _x: Box<[isize]> = box *array;
11    |                                ^^^^^^
12
13 error[E0507]: cannot move out of borrowed content
14   --> $DIR/dst-rvalue.rs:16:28
15    |
16 LL |     let _x: Box<str> = box *"hello world";
17    |                            ^^^^^^^^^^^^^^ cannot move out of borrowed content
18
19 error[E0507]: cannot move out of borrowed content
20   --> $DIR/dst-rvalue.rs:21:32
21    |
22 LL |     let _x: Box<[isize]> = box *array;
23    |                                ^^^^^^ cannot move out of borrowed content
24
25 error: aborting due to 4 previous errors
26
27 Some errors occurred: E0161, E0507.
28 For more information about an error, try `rustc --explain E0161`.