diff --git a/test/exec/test_any_sender.cpp b/test/exec/test_any_sender.cpp index 74b82e058..2bf61ad42 100644 --- a/test/exec/test_any_sender.cpp +++ b/test/exec/test_any_sender.cpp @@ -100,9 +100,12 @@ namespace STATIC_REQUIRE(std::is_copy_assignable_v>); STATIC_REQUIRE(std::is_constructible_v, sink_receiver const &>); STATIC_REQUIRE(!std::is_constructible_v, sink_receiver &&>); - STATIC_REQUIRE( - !std::is_constructible_v>, - sink_receiver const &>); + using void_ref = exec::any_receiver_ref>; + // void_ref names a deprecated partial specialization. Complete it here, inside this + // file's -Wdeprecated-declarations suppression; otherwise it is first completed inside + // libc++'s is_constructible_v, where the suppression doesn't apply. + static_assert(sizeof(void_ref) != 0); + STATIC_REQUIRE(!std::is_constructible_v); } TEST_CASE("exec::any_receiver_ref is queryable", "[types][any_sender]")