rust/src/test/run-fail/fn-constraint.rs
Marijn Haverbeke 780f8277f4 Finish cleanup of core::str
Closes #1849
2012-02-23 17:00:19 +01:00

10 lines
223 B
Rust

// error-pattern:Predicate uint::le(a, b) failed
fn main() unsafe {
fn foo(_a: uint, _b: uint) : uint::le(_a, _b) {}
let a: uint = 4u;
let b: uint = 1u;
check (uint::le(a, b));
log(error, foo(a, b));
}