diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-04-24 14:16:50 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-04-24 14:55:16 -0700 |
| commit | e7dbf42214c5dfe39b8fd6896171aaa8feee7582 (patch) | |
| tree | 461537fc368efdd0c047635a70c33b5e7e4fa68d /src/test/run-fail | |
| parent | 5437a045fc653eea0efafb28f0e13b12f0bfa3d5 (diff) | |
| download | rust-e7dbf42214c5dfe39b8fd6896171aaa8feee7582.tar.gz rust-e7dbf42214c5dfe39b8fd6896171aaa8feee7582.zip | |
rustc: Fix type_need_unwind_cleanup. Closes #2272
Diffstat (limited to 'src/test/run-fail')
| -rw-r--r-- | src/test/run-fail/issue-2272.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/run-fail/issue-2272.rs b/src/test/run-fail/issue-2272.rs new file mode 100644 index 00000000000..5aa1f4a92f6 --- /dev/null +++ b/src/test/run-fail/issue-2272.rs @@ -0,0 +1,12 @@ +// error-pattern:explicit failure +// Issue #2272 - unwind this without leaking the unique pointer + +fn main() { + let _x = { + y: { + z: @0 + }, + a: ~0 + }; + fail; +} \ No newline at end of file |
