321fd80219
Add a loop {} construct for infinite loops, and use it in test cases. See #1906 for details.
6 lines
125 B
Rust
6 lines
125 B
Rust
// error-pattern: precondition constraint
|
|
|
|
fn f() -> int { let x: int; while 1 == 1 { x = 10; } ret x; }
|
|
|
|
fn main() { f(); }
|