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

11 lines
213 B
Rust
Raw Normal View History

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