rust/src/test/run-fail/fn-constraint-claim.rs
2011-09-01 16:09:15 -07:00

8 lines
186 B
Rust

// error-pattern:quux
use std;
import std::uint::*;
fn nop(a: uint, b: uint) : le(a, b) { fail "quux"; }
fn main() { let a: uint = 5u; let b: uint = 4u; claim (le(a, b)); nop(a, b); }