fork/rust
git clone https://git.julia.blue/fork/rust
8d69840ab92
1.43.1
1error[E0382]: use of moved value: `my_str` 2 --> $DIR/borrowck-drop-from-guard.rs:11:23 3 | 4LL | let my_str = "hello".to_owned(); 5 | ------ move occurs because `my_str` has type `std::string::String`, which does not implement the `Copy` trait 6LL | match Some(42) { 7LL | Some(_) if { drop(my_str); false } => {} 8 | ------ value moved here 9LL | Some(_) => {} 10LL | None => { foo(my_str); } 11 | ^^^^^^ value used here after move 12 13error: aborting due to previous error 14 15For more information about this error, try `rustc --explain E0382`.