]> git.lizzy.rs Git - rust.git/commit
Add actual use of the `struct Structure` lying dormant in `new-box-syntax.rs`.
authorFelix S. Klock II <pnkfelix@pnkfx.org>
Wed, 22 Jul 2015 13:30:05 +0000 (15:30 +0200)
committerFelix S. Klock II <pnkfelix@pnkfx.org>
Wed, 22 Jul 2015 13:34:01 +0000 (15:34 +0200)
commita81f88d4d642d0cae324b301df3fe089f0d090b4
tree5f68b2aab90844a76335ddb10a295352a79c8af9
parent9d6cc05a062c9cf131939ab7c9de5acbd6afd8cc
Add actual use of the `struct Structure` lying dormant in `new-box-syntax.rs`.

The original test program exercised the (garbage-collected heap)
allocation form `box (GC) ...`, feeding an instance of `Structure` in
as the expression. This obviously went away when `GC` went away, but
there's no reason for us not to include an appropriate unit test here
for the same form, just for heap-allocated instances of `Structure`.
src/test/run-pass/new-box-syntax.rs