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

9 lines
186 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;
check uint::le(a, b);
2011-07-27 07:19:39 -05:00
let c = b;
log(debug, foo(a, c));
}