Add test for if without else cannot return result

This commit is contained in:
Brian Anderson 2011-11-07 12:20:22 -08:00
parent 413d97f8bd
commit 9375204461
1 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,6 @@
// error-pattern:`if` without `else` can not produce a result
fn main() {
let a = if true { true };
log a;
}