rust/src/test/run-fail/fn-constraint.rs

12 lines
210 B
Rust
Raw Normal View History

// error-pattern:Predicate le(a, b) failed
use std;
import str::*;
import uint::le;
fn main() {
2011-07-27 14:19:39 +02:00
let a: uint = 4u;
let b: uint = 1u;
check (le(a, b));
log(error, safe_slice("kitties", a, b));
}