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

11 lines
250 B
Rust

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