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

10 lines
198 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 str::*;
fn main() {
2011-07-27 07:19:39 -05:00
let a: uint = 4u;
let b: uint = 1u;
log(error, safe_slice("kitties", a, b));
}