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

9 lines
205 B
Rust
Raw Normal View History

// error-pattern: Unsatisfied precondition constraint (for example, le(a, b)
use std;
import std::str::*;
fn main() {
2011-07-27 07:19:39 -05:00
let a: uint = 4u;
let b: uint = 1u;
log_err safe_slice("kitties", a, b);
}