]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/rfc-0107-bind-by-move-pattern-guards/bind-by-move-no-guards.rs
Auto merge of #63233 - RalfJung:get_unchecked, r=Centril
[rust.git] / src / test / ui / rfc-0107-bind-by-move-pattern-guards / bind-by-move-no-guards.rs
index 7b499af632ecee2645fe079cde2cbfe6e9b342c6..e43c8541e6d6d323d7504250f4e7d75ac06a64c7 100644 (file)
@@ -2,7 +2,7 @@
 // rust-lang/rust#2329), that starts passing with this feature in
 // place.
 
-// compile-pass
+// run-pass
 
 #![feature(bind_by_move_pattern_guards)]
 
@@ -12,6 +12,7 @@ fn main() {
     let (tx, rx) = channel();
     let x = Some(rx);
     tx.send(false);
+    tx.send(false);
     match x {
         Some(z) if z.recv().unwrap() => { panic!() },
         Some(z) => { assert!(!z.recv().unwrap()); },