summary refs log tree commit diff
path: root/src/test/ui/dst/dst-rvalue.stderr
blob: 0957105c8a7974ae1694a0e8729a3f4097da1c8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
error[E0161]: cannot move a value of type str: the size of str cannot be statically determined
  --> $DIR/dst-rvalue.rs:16:28
   |
LL |     let _x: Box<str> = box *"hello world";
   |                            ^^^^^^^^^^^^^^

error[E0161]: cannot move a value of type [isize]: the size of [isize] cannot be statically determined
  --> $DIR/dst-rvalue.rs:21:32
   |
LL |     let _x: Box<[isize]> = box *array;
   |                                ^^^^^^

error[E0507]: cannot move out of borrowed content
  --> $DIR/dst-rvalue.rs:16:28
   |
LL |     let _x: Box<str> = box *"hello world";
   |                            ^^^^^^^^^^^^^^ cannot move out of borrowed content

error[E0507]: cannot move out of borrowed content
  --> $DIR/dst-rvalue.rs:21:32
   |
LL |     let _x: Box<[isize]> = box *array;
   |                                ^^^^^^ cannot move out of borrowed content

error: aborting due to 4 previous errors

Some errors occurred: E0161, E0507.
For more information about an error, try `rustc --explain E0161`.