Skip to content

Commit eaca1c9

Browse files
brsongraydon
authored andcommitted
---
yaml --- r: 1904 b: refs/heads/master c: 38d5453 h: refs/heads/master v: v3
1 parent 841bef3 commit eaca1c9

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: aced4ce145bf23cc945c58a6c9c1bc1f33359a06
2+
refs/heads/master: 38d54535840603b131cfac0aafc4133e62a7fb56
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// xfail-boot
2+
// 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

Comments
 (0)