blob: 0b44a70a569fc213a6b1ca47eade4e21bb8910f0 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
 | // run-pass
fn incr(x: &mut isize) -> bool { *x += 1; assert!((false)); return false; }
pub fn main() {
    let x = 1 == 2 || 3 == 3;
    assert!((x));
    let mut y: isize = 10;
    println!("{}", x || incr(&mut y));
    assert_eq!(y, 10);
    if true && x { assert!((true)); } else { assert!((false)); }
}
 |