diff --git a/folly/wangle/test/FutureTest.cpp b/folly/wangle/test/FutureTest.cpp index 8afbdc177bd259c40972fe56313c692ed54f7593..a362e9bf4b5cef61ded48983195e4a4bfa82deeb 100644 --- a/folly/wangle/test/FutureTest.cpp +++ b/folly/wangle/test/FutureTest.cpp @@ -520,6 +520,12 @@ TEST(when, whenN) { /* Ensure that we can compile when_{all,any} with folly::small_vector */ TEST(when, small_vector) { + + static_assert(!FOLLY_IS_TRIVIALLY_COPYABLE(Future<void>), + "Futures should not be trivially copyable"); + static_assert(!FOLLY_IS_TRIVIALLY_COPYABLE(Future<int>), + "Futures should not be trivially copyable"); + using folly::small_vector; { small_vector<Future<void>> futures;