]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0161.stderr
Auto merge of #47804 - retep007:recursive-requirements, r=pnkfelix
[rust.git] / src / test / ui / error-codes / E0161.stderr
1 error[E0161]: cannot move a value of type str: the size of str cannot be statically determined
2   --> $DIR/E0161.rs:14:28
3    |
4 14 |     let _x: Box<str> = box *"hello"; //~ ERROR E0161
5    |                            ^^^^^^^^
6
7 error[E0507]: cannot move out of borrowed content
8   --> $DIR/E0161.rs:14:28
9    |
10 14 |     let _x: Box<str> = box *"hello"; //~ ERROR E0161
11    |                            ^^^^^^^^ cannot move out of borrowed content
12
13 error: aborting due to 2 previous errors
14