2011-06-28 13:48:54 -05:00
|
|
|
// xfail-stage0
|
|
|
|
// error-pattern: Unsatisfied precondition constraint (for example, even(y
|
|
|
|
|
2011-07-27 07:19:39 -05:00
|
|
|
fn print_even(y: int) { log y; }
|
2011-06-28 13:48:54 -05:00
|
|
|
|
2011-07-27 07:19:39 -05:00
|
|
|
pred even(y: int) -> bool { true }
|
2011-06-28 13:48:54 -05:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
|
2011-07-27 07:19:39 -05:00
|
|
|
let y: int = 42;
|
|
|
|
check (even(y));
|
|
|
|
do {
|
|
|
|
print_even(y);
|
|
|
|
do { do { do { y += 1; } while true } while true } while true
|
|
|
|
} while true
|
2011-06-28 13:48:54 -05:00
|
|
|
}
|