We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a930af2 commit 7a86847Copy full SHA for 7a86847
tests/Result.cpp
@@ -7,6 +7,13 @@ class MyError : public zest::ResultError {};
7
8
class MyError2 : public zest::ResultError {};
9
10
+zest::Result<void, MyError> test_function_1() {
11
+ // return nothing
12
+ return {};
13
+ // return MyError
14
+ return MyError();
15
+}
16
+
17
constexpr void compile_time_tests() {
18
// test sentinel values
19
static_assert(zest::sentinel_v<int32_t> == INT32_MAX);
0 commit comments