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

13 lines
233 B
Rust
Raw Normal View History

2011-07-09 00:18:23 -05:00
use std;
import str::*;
import uint::*;
2011-07-09 00:18:23 -05:00
2012-02-01 05:53:09 -06:00
fn main() unsafe {
2011-07-27 07:19:39 -05:00
let a: uint = 1u;
let b: uint = 4u;
let c: uint = 17u;
check (le(a, b));
c <- a;
log(debug, str::unsafe::slice_bytes_safe_range("kitties", c, b));
}