assert_receive(d) should leak

Closes #2030.