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

10 lines
201 B
Rust
Raw Normal View History

2011-08-31 15:23:34 -07:00
// error-pattern:precondition constraint (for example, uint::le(a, b)
use std;
2011-08-31 15:23:34 -07:00
import std::istr::*;
fn main() {
2011-07-27 14:19:39 +02:00
let a: uint = 4u;
let b: uint = 1u;
2011-08-31 15:23:34 -07:00
log_err safe_slice(~"kitties", a, b);
}