diff options
| author | Brian Anderson <[email protected]> | 2011-03-31 20:17:43 -0400 |
|---|---|---|
| committer | Brian Anderson <[email protected]> | 2011-03-31 23:15:11 -0400 |
| commit | 2490cd327514471c8e7fb56a9fba2c2304c04552 (patch) | |
| tree | 390e1720c62515f53f1c21b04ba9afd0a855b3b8 /src | |
| parent | rustc: Add a type annotation to tag items (diff) | |
| download | rust-2490cd327514471c8e7fb56a9fba2c2304c04552.tar.xz rust-2490cd327514471c8e7fb56a9fba2c2304c04552.zip | |
Add a test for block expressions that have results. XFAILed.
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/run-pass/expr-block-box.rs | 11 |
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 |