1 error[E0382]: borrow of moved value: `x`
2 --> $DIR/borrow-after-move.rs:20:24
7 LL | println!("{}", &x);
8 | ^^ value borrowed here after partial move
10 = note: move occurs because `*x` has type `str`, which does not implement the `Copy` trait
12 error[E0382]: borrow of moved value: `y`
13 --> $DIR/borrow-after-move.rs:22:24
16 | - move occurs because `y` has type `str`, which does not implement the `Copy` trait
20 LL | println!("{}", &y);
21 | ^^ value borrowed here after move
23 error[E0382]: borrow of moved value: `x`
24 --> $DIR/borrow-after-move.rs:30:24
29 LL | println!("{}", &x);
30 | ^^ value borrowed here after partial move
32 = note: move occurs because `*x` has type `str`, which does not implement the `Copy` trait
34 error[E0382]: borrow of moved value: `y`
35 --> $DIR/borrow-after-move.rs:32:24
38 | - move occurs because `y` has type `str`, which does not implement the `Copy` trait
42 LL | println!("{}", &y);
43 | ^^ value borrowed here after move
45 error[E0382]: borrow of moved value: `x`
46 --> $DIR/borrow-after-move.rs:39:24
48 LL | let x = "hello".to_owned().into_boxed_str();
49 | - move occurs because `x` has type `std::boxed::Box<str>`, which does not implement the `Copy` trait
52 LL | println!("{}", &x);
53 | ^^ value borrowed here after move
55 error: aborting due to 5 previous errors
57 For more information about this error, try `rustc --explain E0382`.