rust/src/test/run-pass/fn-constraint.rs

8 lines
173 B
Rust
Raw Normal View History

2012-02-01 05:53:09 -06:00
fn main() unsafe {
fn foo(_a: uint, _b: uint) : uint::le(_a, _b) {}
2011-07-27 07:19:39 -05:00
let a: uint = 1u;
let b: uint = 4u;
2012-02-03 07:18:14 -06:00
check (uint::le(a, b));
log(debug, foo(a, b));
}