1 error[E0507]: cannot move out of a shared reference
2 --> $DIR/borrowck-move-in-irrefut-pat.rs:3:13
4 LL | fn arg_item(&_x: &String) {}
8 | |move occurs because `_x` has type `String`, which does not implement the `Copy` trait
9 | help: consider removing the `&`: `_x`
11 error[E0507]: cannot move out of a shared reference
12 --> $DIR/borrowck-move-in-irrefut-pat.rs:7:11
18 | |move occurs because `_x` has type `String`, which does not implement the `Copy` trait
19 | help: consider removing the `&`: `_x`
21 error[E0507]: cannot move out of a shared reference
22 --> $DIR/borrowck-move-in-irrefut-pat.rs:12:15
24 LL | let &_x = &"hi".to_string();
25 | --- ^^^^^^^^^^^^^^^^^
28 | |move occurs because `_x` has type `String`, which does not implement the `Copy` trait
29 | help: consider removing the `&`: `_x`
31 error: aborting due to 3 previous errors
33 For more information about this error, try `rustc --explain E0507`.