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 | |help: to prevent move, use ref or ref mut: `ref _x`
9 | cannot move out of borrowed content
11 error[E0507]: cannot move out of borrowed content
12 --> $DIR/borrowck-move-in-irrefut-pat.rs:21:11
18 | |help: to prevent move, use ref or ref mut: `ref _x`
19 | cannot move out of borrowed content
21 error[E0507]: cannot move out of borrowed content
22 --> $DIR/borrowck-move-in-irrefut-pat.rs:27:15
24 LL | let &_x = &"hi".to_string();
25 | -- ^^^^^^^^^^^^^^^^^ cannot move out of borrowed content
28 | help: to prevent move, use ref or ref mut: `ref _x`
30 error: aborting due to 3 previous errors
32 For more information about this error, try `rustc --explain E0507`.