We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3ef084 commit cbb516aCopy full SHA for cbb516a
[refs]
@@ -1,5 +1,5 @@
1
---
2
-refs/heads/master: 7ae757ff1a54f1b420655dfefd505c140bfee16e
+refs/heads/master: ac4294a176f643c9c1f9bb992bf1b2f690499c30
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
trunk/src/test/run-pass/alt-with-ret-arm.rs
@@ -0,0 +1,11 @@
+fn main() {
+ // sometimes we have had trouble finding
+ // the right type for f, as we unified
+ // bot and u32 here
+ let f = alt uint::from_str("1234") {
6
+ none { ret () }
7
+ some(num) { num as u32 }
8
+ };
9
+ assert f == 1234u32;
10
+ log(error, f)
11
+}
0 commit comments