]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0161.nll.stderr
6aaff7433830d7a0fb510212570d3ef5fa976e03
[rust.git] / src / test / ui / error-codes / E0161.nll.stderr
1 error[E0507]: cannot move out of borrowed content
2   --> $DIR/E0161.rs:14:28
3    |
4 LL |     let _x: Box<str> = box *"hello"; //~ ERROR E0161
5    |                            ^^^^^^^^ cannot move out of borrowed content
6
7 error[E0161]: cannot move a value of type str: the size of str cannot be statically determined
8   --> $DIR/E0161.rs:14:28
9    |
10 LL |     let _x: Box<str> = box *"hello"; //~ ERROR E0161
11    |                            ^^^^^^^^
12
13 error: aborting due to 2 previous errors
14
15 Some errors occurred: E0161, E0507.
16 For more information about an error, try `rustc --explain E0161`.