diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-06-24 23:54:41 -0700 |
|---|---|---|
| committer | Corey Richardson <corey@octayn.net> | 2013-06-26 18:08:13 -0400 |
| commit | 8a4d359ffcfc9b0055580e27b841caf7e88f8f15 (patch) | |
| tree | 340cba7bb1416ca77896353f02128b0678ca9d50 | |
| parent | 9423850fc38617089a976f748af7ee113132fd1a (diff) | |
| download | rust-8a4d359ffcfc9b0055580e27b841caf7e88f8f15.tar.gz rust-8a4d359ffcfc9b0055580e27b841caf7e88f8f15.zip | |
Fix a formatting bug in rusti
| -rw-r--r-- | src/librusti/program.rs | 2 | ||||
| -rw-r--r-- | src/librusti/rusti.rs | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/librusti/program.rs b/src/librusti/program.rs index f17777559de..869b3472422 100644 --- a/src/librusti/program.rs +++ b/src/librusti/program.rs @@ -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 => {} } diff --git a/src/librusti/rusti.rs b/src/librusti/rusti.rs index 57a2a48a0f6..54a404d971e 100644 --- a/src/librusti/rusti.rs +++ b/src/librusti/rusti.rs @@ -648,6 +648,11 @@ mod tests { fn f() {} f() "); + + debug!("simultaneous definitions + expressions are allowed"); + run_program(" + let a = 3; a as u8 + "); } #[test] |
