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

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

fn main() { f(); }