nice error message if you try to Future<void>
authorHans Fugal <fugalh@fb.com>
Thu, 2 Jul 2015 18:43:42 +0000 (11:43 -0700)
committerSara Golemon <sgolemon@fb.com>
Thu, 2 Jul 2015 22:46:00 +0000 (15:46 -0700)
commit8fe0a63e56fa5e9999d6cb793a0b8ddb31241c73
tree0694a2de51fe990b2c6055e241ab254bf3c0e936
parent124b2552b790f224dfb8b08d5244349ebca9c628
nice error message if you try to Future<void>

Summary: If you try to make a future or promise of `void`, you will get this nice error message telling you to use `Unit` instead.

Reviewed By: @djwatson

Differential Revision: D2211239
folly/futures/detail/Core.h