Fix a formatting bug in rusti

This commit is contained in:
Alex Crichton 2013-06-24 23:54:41 -07:00 committed by Corey Richardson
parent 9423850fc3
commit 8a4d359ffc
2 changed files with 6 additions and 1 deletions

View File

@ -107,7 +107,7 @@ impl Program {
match *to_print {
Some(ref s) => {
code.push_str(*s);
code.push_char('\n');
code.push_str(";\n");
}
None => {}
}

View File

@ -648,6 +648,11 @@ mod tests {
fn f() {}
f()
");
debug!("simultaneous definitions + expressions are allowed");
run_program("
let a = 3; a as u8
");
}
#[test]