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