15 lines
153 B
Rust
15 lines
153 B
Rust
// xfail-stage0
|
|
// error-pattern: precondition constraint
|
|
|
|
fn f() -> int {
|
|
let int x;
|
|
while(true) {
|
|
x = 10;
|
|
}
|
|
ret x;
|
|
}
|
|
|
|
fn main() {
|
|
f();
|
|
}
|