rust/src/test/compile-fail/while-constraints.rs
2012-05-10 15:27:42 -07:00

11 lines
227 B
Rust

// error-pattern:unsatisfied precondition constraint (for example, init(y
fn main() {
let y: int = 42;
let x: int;
loop {
log(debug, y);
while true { while true { while true { x <- y; } } }
}
}