about summary refs log tree commit diff
path: root/src/test/compile-fail/do-while-constraints.rs
blob: f7d03b89354aca70abbae7e956c748a747b15b8f (plain)
1
2
3
4
5
6
7
8
9
10
// error-pattern: Unsatisfied precondition constraint (for example, init(y
fn main() {

    let y: int = 42;
    let x: int;
    do  {
        log y;
        do  { do  { do  { x <- y; } while true } while true } while true
    } while true
}