diff options
Diffstat (limited to 'tests/ui/drop/auxiliary/issue-10028.rs')
-rw-r--r-- | tests/ui/drop/auxiliary/issue-10028.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/drop/auxiliary/issue-10028.rs b/tests/ui/drop/auxiliary/issue-10028.rs new file mode 100644 index 000000000..135f26f40 --- /dev/null +++ b/tests/ui/drop/auxiliary/issue-10028.rs @@ -0,0 +1,9 @@ +pub struct ZeroLengthThingWithDestructor; +impl Drop for ZeroLengthThingWithDestructor { + fn drop(&mut self) {} +} +impl ZeroLengthThingWithDestructor { + pub fn new() -> ZeroLengthThingWithDestructor { + ZeroLengthThingWithDestructor + } +} |