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

11 lines
213 B
Rust
Raw Normal View History

2011-07-09 00:18:23 -05:00
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;
let mut c: uint = 17u;
2012-02-03 07:18:14 -06:00
check (uint::le(a, b));
2011-07-27 07:19:39 -05:00
c <- a;
log(debug, foo(c, b));
}