1 warning: the feature `unsized_locals` is incomplete and may not be safe to use and/or cause compiler crashes
2 --> $DIR/double-move.rs:1:12
4 LL | #![feature(unsized_locals, unsized_fn_params)]
7 = note: see issue #48055 <https://github.com/rust-lang/rust/issues/48055> for more information
8 = note: `#[warn(incomplete_features)]` on by default
10 error[E0382]: use of moved value: `y`
11 --> $DIR/double-move.rs:21:22
14 | - move occurs because `y` has type `str`, which does not implement the `Copy` trait
18 | ^ value used here after move
20 note: consider changing this parameter type in function `drop_unsized` to borrow instead if owning the value isn't necessary
21 --> $DIR/double-move.rs:14:31
23 LL | fn drop_unsized<T: ?Sized>(_: T) {}
24 | ------------ ^ this parameter takes ownership of the value
28 error[E0382]: use of moved value: `x`
29 --> $DIR/double-move.rs:27:22
34 | ^ value used here after move
36 = note: move occurs because `*x` has type `str`, which does not implement the `Copy` trait
38 error[E0382]: use of moved value: `*x`
39 --> $DIR/double-move.rs:33:18
41 LL | let x = "hello".to_owned().into_boxed_str();
42 | - move occurs because `x` has type `Box<str>`, which does not implement the `Copy` trait
46 | ^^ value used here after move
48 error[E0382]: use of moved value: `y`
49 --> $DIR/double-move.rs:40:9
52 | - move occurs because `y` has type `str`, which does not implement the `Copy` trait
54 | ----- `y` moved due to this method call
56 | ^ value used here after move
58 note: this function takes ownership of the receiver `self`, which moves `y`
59 --> $DIR/double-move.rs:5:12
61 LL | fn foo(self) -> String;
64 error[E0382]: use of moved value: `x`
65 --> $DIR/double-move.rs:46:9
70 | ^ value used here after move
72 = note: move occurs because `*x` has type `str`, which does not implement the `Copy` trait
74 error[E0382]: use of moved value: `*x`
75 --> $DIR/double-move.rs:52:18
77 LL | let x = "hello".to_owned().into_boxed_str();
78 | - move occurs because `x` has type `Box<str>`, which does not implement the `Copy` trait
82 | ^^ value used here after move
84 error: aborting due to 6 previous errors; 1 warning emitted
86 For more information about this error, try `rustc --explain E0382`.