rust/src/test/run-pass/bug-862.rs

8 lines
178 B
Rust
Raw Normal View History

pure fn p(j: int) -> bool { true }
fn f(i: int, j: int) : p(j) -> int { j }
fn g(i: int, j: int) : p(j) -> int { f(i, j) }
2011-09-02 17:34:58 -05:00
fn main() { let x = 1; check (p(x)); log g(x, x); }