diff --git a/src/tint/utils/result.h b/src/tint/utils/result.h index 6cfe6687ca..b535f4fcdb 100644 --- a/src/tint/utils/result.h +++ b/src/tint/utils/result.h @@ -32,7 +32,7 @@ static constexpr const FailureType Failure; /// information about the failure, except that something failed. Must not be the same type /// as SUCCESS_TYPE. template -struct Result { +struct [[nodiscard]] Result { static_assert(!std::is_same_v, "Result must not have the same type for SUCCESS_TYPE and FAILURE_TYPE");