rust/src/test/compile-fail/while-loop-constraints.rs

15 lines
282 B
Rust

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