rust/src/test/run-pass/box-inside-if2.rs

17 lines
307 B
Rust
Raw Normal View History

// -*- rust -*-
use std;
import std::vec;
fn some_vec(int x) -> vec[int] { ret []; }
fn is_odd(int n) -> bool { ret true; }
fn length_is_even(vec[int] vs) -> bool { ret true; }
fn foo(int acc, int n) {
if (is_odd(n) || length_is_even(some_vec(1))) { log_err "bloop"; }
}
fn main() { foo(67, 5); }