summaryrefslogtreecommitdiffstats
path: root/src/test/ui/borrowck/borrowck-drop-from-guard.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/borrowck/borrowck-drop-from-guard.rs11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/test/ui/borrowck/borrowck-drop-from-guard.rs b/src/test/ui/borrowck/borrowck-drop-from-guard.rs
deleted file mode 100644
index 4995029a7..000000000
--- a/src/test/ui/borrowck/borrowck-drop-from-guard.rs
+++ /dev/null
@@ -1,11 +0,0 @@
-fn foo(_:String) {}
-
-fn main()
-{
- let my_str = "hello".to_owned();
- match Some(42) {
- Some(_) if { drop(my_str); false } => {}
- Some(_) => {}
- None => { foo(my_str); } //~ ERROR [E0382]
- }
-}