fork/rust
git clone https://git.julia.blue/fork/rust
f3e1a954d2e
1.41.1
1error[E0507]: cannot move out of a shared reference 2 --> $DIR/borrowck-move-in-irrefut-pat.rs:3:13 3 | 4LL | fn arg_item(&_x: &String) {} 5 | ^-- 6 | || 7 | |data moved here 8 | |move occurs because `_x` has type `std::string::String`, which does not implement the `Copy` trait 9 | help: consider removing the `&`: `_x` 10 11error[E0507]: cannot move out of a shared reference 12 --> $DIR/borrowck-move-in-irrefut-pat.rs:7:11 13 | 14LL | with(|&_x| ()) 15 | ^-- 16 | || 17 | |data moved here 18 | |move occurs because `_x` has type `std::string::String`, which does not implement the `Copy` trait 19 | help: consider removing the `&`: `_x` 20 21error[E0507]: cannot move out of a shared reference 22 --> $DIR/borrowck-move-in-irrefut-pat.rs:12:15 23 | 24LL | let &_x = &"hi".to_string(); 25 | --- ^^^^^^^^^^^^^^^^^ 26 | || 27 | |data moved here 28 | |move occurs because `_x` has type `std::string::String`, which does not implement the `Copy` trait 29 | help: consider removing the `&`: `_x` 30 31error: aborting due to 3 previous errors 32 33For more information about this error, try `rustc --explain E0507`.