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 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
37 | ----- `y` moved due to this method call
39 | ^ value used here after move
41 note: this function consumes the receiver `self` by taking ownership of it, which moves `y`
42 --> $DIR/double-move.rs:4:12
44 LL | fn foo(self) -> String;
47 error[E0382]: use of moved value: `x`
48 --> $DIR/double-move.rs:45:9
53 | ^ value used here after move
55 = note: move occurs because `*x` has type `str`, which does not implement the `Copy` trait
57 error[E0382]: use of moved value: `*x`
58 --> $DIR/double-move.rs:51:18
60 LL | let x = "hello".to_owned().into_boxed_str();
61 | - move occurs because `x` has type `std::boxed::Box<str>`, which does not implement the `Copy` trait
65 | ^^ value used here after move
67 error: aborting due to 6 previous errors
69 For more information about this error, try `rustc --explain E0382`.