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

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