Skip to content

Commit 492a7c1

Browse files
alexcrichtonemberian
authored andcommitted
---
yaml --- r: 63713 b: refs/heads/snap-stage3 c: 8a4d359 h: refs/heads/master i: 63711: 227233e v: v3
1 parent 86bcb4e commit 492a7c1

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 2d28d645422c1617be58c8ca7ad9a457264ca850
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 9423850fc38617089a976f748af7ee113132fd1a
4+
refs/heads/snap-stage3: 8a4d359ffcfc9b0055580e27b841caf7e88f8f15
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/librusti/program.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ impl Program {
107107
match *to_print {
108108
Some(ref s) => {
109109
code.push_str(*s);
110-
code.push_char('\n');
110+
code.push_str(";\n");
111111
}
112112
None => {}
113113
}

branches/snap-stage3/src/librusti/rusti.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,11 @@ mod tests {
648648
fn f() {}
649649
f()
650650
");
651+
652+
debug!("simultaneous definitions + expressions are allowed");
653+
run_program("
654+
let a = 3; a as u8
655+
");
651656
}
652657

653658
#[test]

0 commit comments

Comments
 (0)