Fix a formatting bug in rusti
This commit is contained in:
parent
9423850fc3
commit
8a4d359ffc
@ -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 => {}
|
||||
}
|
||||
|
@ -648,6 +648,11 @@ mod tests {
|
||||
fn f() {}
|
||||
f()
|
||||
");
|
||||
|
||||
debug!("simultaneous definitions + expressions are allowed");
|
||||
run_program("
|
||||
let a = 3; a as u8
|
||||
");
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
Loading…
Reference in New Issue
Block a user