Skip to content

Commit 2490cd3

Browse files
committed
Add a test for block expressions that have results. XFAILed.
1 parent c66edca commit 2490cd3

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/test/run-pass/expr-block-box.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// xfail-boot
2+
// xfail-stage0
3+
// -*- rust -*-
4+
5+
fn main() {
6+
auto x = {
7+
@100
8+
};
9+
10+
check (*x == 100);
11+
}

0 commit comments

Comments
 (0)