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

10 lines
199 B
Rust
Raw Normal View History

2011-08-31 17:23:34 -05:00
// error-pattern:precondition constraint (for example, uint::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;
2011-09-02 17:34:58 -05:00
log_err safe_slice("kitties", a, b);
}