diff options
Diffstat (limited to 'src/test/compile-fail/regions-infer-borrow-scope-within-loop.rs')
| -rw-r--r-- | src/test/compile-fail/regions-infer-borrow-scope-within-loop.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/compile-fail/regions-infer-borrow-scope-within-loop.rs b/src/test/compile-fail/regions-infer-borrow-scope-within-loop.rs index 72cca99b201..59329195b71 100644 --- a/src/test/compile-fail/regions-infer-borrow-scope-within-loop.rs +++ b/src/test/compile-fail/regions-infer-borrow-scope-within-loop.rs @@ -19,10 +19,10 @@ fn foo(cond: fn() -> bool, box: fn() -> @int) { // of this borrow is the fn body as a whole. y = borrow(x); //~ ERROR illegal borrow: cannot root managed value long enough - assert *x == *y; + fail_unless!(*x == *y); if cond() { break; } } - assert *y != 0; + fail_unless!(*y != 0); } fn main() {} |
