summary refs log tree commit diff
path: root/src/test/compile-fail/while-loop-constraints.rs
blob: 38c1d471593ee32934a7a5dbb504333e4d0f7ced (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;
    loop {
        log(debug, y);
        loop {
            loop {
                loop { x <- y; }
            }
        }
    }
}