summary refs log tree commit diff
path: root/src/test/compile-fail/while-loop-constraints.rs
blob: 287ee2d684cc579957c09ad3c08cf167ee390dcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// 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; }
            }
        }
    }
}