16 lines
286 B
Rust
16 lines
286 B
Rust
|
|
|
|
// -*- rust -*-
|
|
|
|
fn some_box(x: int) -> @int { return @x; }
|
|
|
|
fn is_odd(n: int) -> bool { return true; }
|
|
|
|
fn length_is_even(vs: @int) -> bool { return true; }
|
|
|
|
fn foo(acc: int, n: int) {
|
|
if is_odd(n) && length_is_even(some_box(1)) { error!{"bloop"}; }
|
|
}
|
|
|
|
fn main() { foo(67, 5); }
|