summary refs log tree commit diff
path: root/src/test/ui/error-codes/E0161.stderr
blob: 0135e495c16b5b23b9f9d860625799d9eb74bfb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
error[E0161]: cannot move a value of type str: the size of str cannot be statically determined
  --> $DIR/E0161.rs:14:28
   |
LL |     let _x: Box<str> = box *"hello"; //~ ERROR E0161
   |                            ^^^^^^^^

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

error: aborting due to 2 previous errors

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