about summary refs log tree commit diff
path: root/src/test/compile-fail/while-bypass.rs
blob: e70090dd59ea27b8333ce025d21c574a6e242172 (plain)
1
2
3
4
5
// error-pattern: precondition constraint

fn f() -> int { let x: int; while true { x = 10; } ret x; }

fn main() { f(); }