1 error[E0382]: use of moved value: `y`
2 --> $DIR/double-move.rs:20:22
5 | - move occurs because `y` has type `str`, which does not implement the `Copy` trait
9 | ^ value used here after move
11 error[E0382]: use of moved value: `x`
12 --> $DIR/double-move.rs:26:22
17 | ^ value used here after partial move
19 = note: move occurs because `*x` has type `str`, which does not implement the `Copy` trait
21 error[E0382]: use of moved value: `*x`
22 --> $DIR/double-move.rs:32:18
24 LL | let x = "hello".to_owned().into_boxed_str();
25 | - move occurs because `x` has type `std::boxed::Box<str>`, which does not implement the `Copy` trait
29 | ^^ value used here after move
31 error[E0382]: use of moved value: `y`
32 --> $DIR/double-move.rs:39:9
35 | - move occurs because `y` has type `str`, which does not implement the `Copy` trait
39 | ^ value used here after move
41 error[E0382]: use of moved value: `x`
42 --> $DIR/double-move.rs:45:9
47 | ^ value used here after partial move
49 = note: move occurs because `*x` has type `str`, which does not implement the `Copy` trait
51 error[E0382]: use of moved value: `*x`
52 --> $DIR/double-move.rs:51:18
54 LL | let x = "hello".to_owned().into_boxed_str();
55 | - move occurs because `x` has type `std::boxed::Box<str>`, which does not implement the `Copy` trait
59 | ^^ value used here after move
61 error: aborting due to 6 previous errors
63 For more information about this error, try `rustc --explain E0382`.