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 data in a `&` reference
18 --> $DIR/borrowck-move-in-irrefut-pat.rs:16:14
20 LL | fn arg_item(&_x: &String) {}
23 | cannot move out of data in a `&` reference
26 error[E0507]: cannot move out of borrowed content
27 --> $DIR/borrowck-move-in-irrefut-pat.rs:21:11
33 | cannot move out of borrowed content
34 | help: consider removing the `&`: `_x`
36 note: move occurs because `_x` has type `std::string::String`, which does not implement the `Copy` trait
37 --> $DIR/borrowck-move-in-irrefut-pat.rs:21:12
42 error[E0507]: cannot move out of data in a `&` reference
43 --> $DIR/borrowck-move-in-irrefut-pat.rs:21:12
48 | cannot move out of data in a `&` reference
51 error[E0507]: cannot move out of data in a `&` reference
52 --> $DIR/borrowck-move-in-irrefut-pat.rs:27:10
54 LL | let &_x = &"hi".to_string();
57 | cannot move out of data in a `&` reference
60 error[E0507]: cannot move out of borrowed content
61 --> $DIR/borrowck-move-in-irrefut-pat.rs:27:15
63 LL | let &_x = &"hi".to_string();
64 | --- ^^^^^^^^^^^^^^^^^ cannot move out of borrowed content
67 | help: consider removing the `&`: `_x`
69 note: move occurs because `_x` has type `std::string::String`, which does not implement the `Copy` trait
70 --> $DIR/borrowck-move-in-irrefut-pat.rs:27:10
72 LL | let &_x = &"hi".to_string();
75 error: aborting due to 6 previous errors
77 For more information about this error, try `rustc --explain E0507`.