1 error[E0507]: cannot move out of borrowed content
2 --> $DIR/borrowck-move-in-irrefut-pat.rs:16:13
4 LL | fn arg_item(&_x: &String) {}
8 | cannot move out of borrowed content
9 | help: consider removing the `&`: `_x`
11 note: move occurs because `_x` has type `std::string::String`, which does not implement the `Copy` trait
12 --> $DIR/borrowck-move-in-irrefut-pat.rs:16:14
14 LL | fn arg_item(&_x: &String) {}
17 error[E0507]: cannot move out of borrowed content
18 --> $DIR/borrowck-move-in-irrefut-pat.rs:21:11
24 | cannot move out of borrowed content
25 | help: consider removing the `&`: `_x`
27 note: move occurs because `_x` has type `std::string::String`, which does not implement the `Copy` trait
28 --> $DIR/borrowck-move-in-irrefut-pat.rs:21:12
33 error[E0507]: cannot move out of borrowed content
34 --> $DIR/borrowck-move-in-irrefut-pat.rs:27:15
36 LL | let &_x = &"hi".to_string();
37 | --- ^^^^^^^^^^^^^^^^^ cannot move out of borrowed content
40 | help: consider removing the `&`: `_x`
42 note: move occurs because `_x` has type `std::string::String`, which does not implement the `Copy` trait
43 --> $DIR/borrowck-move-in-irrefut-pat.rs:27:10
45 LL | let &_x = &"hi".to_string();
48 error: aborting due to 3 previous errors
50 For more information about this error, try `rustc --explain E0507`.