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