diff options
Diffstat (limited to 'src/test/run-pass/lazy-and-or.rs')
| -rw-r--r-- | src/test/run-pass/lazy-and-or.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/test/run-pass/lazy-and-or.rs b/src/test/run-pass/lazy-and-or.rs index 366b3c41328..043961ce599 100644 --- a/src/test/run-pass/lazy-and-or.rs +++ b/src/test/run-pass/lazy-and-or.rs @@ -8,15 +8,13 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -extern crate debug; - fn incr(x: &mut int) -> bool { *x += 1; assert!((false)); return false; } pub fn main() { let x = 1i == 2 || 3i == 3; assert!((x)); let mut y: int = 10; - println!("{:?}", x || incr(&mut y)); + println!("{}", x || incr(&mut y)); assert_eq!(y, 10); if true && x { assert!((true)); } else { assert!((false)); } } |
