rust/src/test/run-pass/bind-trivial.rs
Patrick Walton 147a2d655f Un-revert "Use different syntax for checks that matter to typestate", fixing the problem.
This reverts commit d08b443fffb1181d8d45ae5d061412f202dd4118.
2011-05-02 17:50:46 -07:00

12 lines
141 B
Rust

// -*- rust -*-
fn f(int n) -> int {
ret n;
}
fn main() {
let fn(int) -> int g = bind f(_);
let int i = g(42);
assert (i == 42);
}