aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/test/run-pass/expr-block-box.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/run-pass/expr-block-box.rs b/src/test/run-pass/expr-block-box.rs
new file mode 100644
index 00000000..b324994a
--- /dev/null
+++ b/src/test/run-pass/expr-block-box.rs
@@ -0,0 +1,11 @@
+// xfail-boot
+// xfail-stage0
+// -*- rust -*-
+
+fn main() {
+ auto x = {
+ @100
+ };
+
+ check (*x == 100);
+} \ No newline at end of file