Skip to content

Commit a76266c

Browse files
committed
fixed but discovered by MSVC++
1 parent 5f1957a commit a76266c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/beman/execution26/exec-set-error.test.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@ void test_callable() {
3838

3939
template <typename R>
4040
auto test_noexcept() {
41+
test::throws obj{};
4142
static_assert(requires { test_std::set_error(std::declval<R>(), arg()); });
42-
static_assert(not requires { test_std::set_error(std::declval<R>(), test::throws()); });
43+
static_assert(not requires { test_std::set_error(std::declval<R>(), obj); });
4344
static_assert(not requires { test_std::set_error(std::declval<R>(), arg_throwing()); });
4445
}
4546
} // namespace

0 commit comments

Comments
 (0)