aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorBrian Anderson <[email protected]>2011-03-31 20:17:43 -0400
committerBrian Anderson <[email protected]>2011-03-31 23:15:11 -0400
commit2490cd327514471c8e7fb56a9fba2c2304c04552 (patch)
tree390e1720c62515f53f1c21b04ba9afd0a855b3b8 /src/test
parentrustc: Add a type annotation to tag items (diff)
downloadrust-2490cd327514471c8e7fb56a9fba2c2304c04552.tar.xz
rust-2490cd327514471c8e7fb56a9fba2c2304c04552.zip
Add a test for block expressions that have results. XFAILed.
Diffstat (limited to 'src/test')
-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