2011-05-12 19:45:29 +00:00
|
|
|
// error-pattern:Unsatisfied precondition
|
2010-07-08 14:33:25 +00:00
|
|
|
|
2011-07-27 12:19:39 +00:00
|
|
|
fn foo(x: int) { log x; }
|
2010-07-08 14:33:25 +00:00
|
|
|
|
2011-08-19 22:16:48 +00:00
|
|
|
fn main() { let x: int; if 1 > 2 { log "whoops"; } else { x = 10; } foo(x); }
|