diff options
Diffstat (limited to 'src/test/ui/borrowck/borrowck-drop-from-guard.stderr')
-rw-r--r-- | src/test/ui/borrowck/borrowck-drop-from-guard.stderr | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/test/ui/borrowck/borrowck-drop-from-guard.stderr b/src/test/ui/borrowck/borrowck-drop-from-guard.stderr deleted file mode 100644 index eaf4bb38b..000000000 --- a/src/test/ui/borrowck/borrowck-drop-from-guard.stderr +++ /dev/null @@ -1,20 +0,0 @@ -error[E0382]: use of moved value: `my_str` - --> $DIR/borrowck-drop-from-guard.rs:9:23 - | -LL | let my_str = "hello".to_owned(); - | ------ move occurs because `my_str` has type `String`, which does not implement the `Copy` trait -LL | match Some(42) { -LL | Some(_) if { drop(my_str); false } => {} - | ------ value moved here -LL | Some(_) => {} -LL | None => { foo(my_str); } - | ^^^^^^ value used here after move - | -help: consider cloning the value if the performance cost is acceptable - | -LL | Some(_) if { drop(my_str.clone()); false } => {} - | ++++++++ - -error: aborting due to previous error - -For more information about this error, try `rustc --explain E0382`. |