rust/src/test/run-pass/box-inside-if.rs
2011-07-27 15:54:33 +02:00

17 lines
310 B
Rust

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