summary refs log tree commit diff
path: root/src/test/ui/error-codes/E0161.nll.stderr
blob: 6aaff7433830d7a0fb510212570d3ef5fa976e03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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[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: aborting due to 2 previous errors

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