diff options
Diffstat (limited to 'src/test/compile-fail/bind-by-move-no-guards.rs')
| -rw-r--r-- | src/test/compile-fail/bind-by-move-no-guards.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/compile-fail/bind-by-move-no-guards.rs b/src/test/compile-fail/bind-by-move-no-guards.rs index d428feb2a24..4a90d2f4b7f 100644 --- a/src/test/compile-fail/bind-by-move-no-guards.rs +++ b/src/test/compile-fail/bind-by-move-no-guards.rs @@ -14,7 +14,7 @@ fn main() { c.send(false); match x { Some(z) if z.recv() => { fail!() }, //~ ERROR cannot bind by-move into a pattern guard - Some(z) => { assert !z.recv(); }, + Some(z) => { fail_unless!(!z.recv()); }, None => fail!() } } |
