rust/src/test/run-fail/fn-constraint.rs
2012-02-01 21:56:53 -08:00

12 lines
230 B
Rust

// error-pattern:Predicate le(a, b) failed
use std;
import str::*;
import uint::le;
fn main() unsafe {
let a: uint = 4u;
let b: uint = 1u;
check (le(a, b));
log(error, str::unsafe::safe_slice("kitties", a, b));
}