aboutsummaryrefslogtreecommitdiff
path: root/lib/std/testing.zig
diff options
context:
space:
mode:
Diffstat (limited to 'lib/std/testing.zig')
-rw-r--r--lib/std/testing.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/testing.zig b/lib/std/testing.zig
index a09d448e0a..a9874d4df1 100644
--- a/lib/std/testing.zig
+++ b/lib/std/testing.zig
@@ -465,7 +465,7 @@ test {
/// Given a type, reference all the declarations inside, so that the semantic analyzer sees them.
pub fn refAllDecls(comptime T: type) void {
if (!builtin.is_test) return;
- inline for (std.meta.declarations(T)) |decl| {
+ inline for (comptime std.meta.declarations(T)) |decl| {
_ = decl;
}
}