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
10 help: consider removing the borrow
12 LL - fn arg_item(&_x: &String) {}
13 LL + fn arg_item(_x: &String) {}
16 error[E0507]: cannot move out of a shared reference
17 --> $DIR/borrowck-move-in-irrefut-pat.rs:7:11
23 | move occurs because `_x` has type `String`, which does not implement the `Copy` trait
25 help: consider removing the borrow
31 error[E0507]: cannot move out of a shared reference
32 --> $DIR/borrowck-move-in-irrefut-pat.rs:12:15
34 LL | let &_x = &"hi".to_string();
35 | -- ^^^^^^^^^^^^^^^^^
38 | move occurs because `_x` has type `String`, which does not implement the `Copy` trait
40 help: consider removing the borrow
42 LL - let &_x = &"hi".to_string();
43 LL + let _x = &"hi".to_string();
46 error: aborting due to 3 previous errors
48 For more information about this error, try `rustc --explain E0507`.