2011-08-31 17:23:34 -05:00
|
|
|
// error-pattern:precondition constraint (for example, uint::le(a, b)
|
2011-06-20 19:29:54 -05:00
|
|
|
use std;
|
2011-12-13 18:25:51 -06:00
|
|
|
import str::*;
|
2011-06-20 19:29:54 -05:00
|
|
|
|
2012-02-01 05:53:09 -06:00
|
|
|
fn main() unsafe {
|
2012-02-23 09:59:30 -06:00
|
|
|
fn foo(_a: uint, _b: uint) : uint::le(_a, _b) {}
|
2011-07-27 07:19:39 -05:00
|
|
|
let a: uint = 4u;
|
|
|
|
let b: uint = 1u;
|
2012-02-23 09:59:30 -06:00
|
|
|
log(error, foo(a, b));
|
2011-08-19 17:16:48 -05:00
|
|
|
}
|