rust/src/test/run-pass/fn-constraint.rs
Kevin Cantu 8f367ebfeb Rename (again) str::unsafe::slice -> str::unsafe::slice_bytes and
str::unsafe::safe_slice -> str::unsafe::slice_bytes_safe_range
2012-02-01 21:56:53 -08:00

11 lines
198 B
Rust

use std;
import str::*;
import uint::*;
fn main() unsafe {
let a: uint = 1u;
let b: uint = 4u;
check (le(a, b));
log(debug, str::unsafe::slice_bytes_safe_range("kitties", a, b));
}