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 841bef3 commit eaca1c9Copy full SHA for eaca1c9
[refs]
@@ -1,2 +1,2 @@
1
---
2
-refs/heads/master: aced4ce145bf23cc945c58a6c9c1bc1f33359a06
+refs/heads/master: 38d54535840603b131cfac0aafc4133e62a7fb56
trunk/src/test/run-pass/expr-if-box.rs
@@ -0,0 +1,14 @@
+// xfail-boot
+// xfail-stage0
3
+// -*- rust -*-
4
+
5
+// Tests for if as expressions returning boxed types
6
7
+fn test_box() {
8
+ auto res = if (true) { @100 } else { @101 };
9
+ check (*res == 100);
10
+}
11
12
+fn main() {
13
+ test_box();
14
0 commit comments