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

11 lines
240 B
Rust

// error-pattern:precondition constraint (for example, uint::le(a, b)
use std;
import str::*;
fn main() unsafe {
fn foo(_a: uint, _b: uint) : uint::le(_a, _b) {}
let a: uint = 4u;
let b: uint = 1u;
log(error, foo(a, b));
}