aboutsummaryrefslogtreecommitdiff
path: root/lib/std/meta
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-04-29 20:33:29 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-04-29 20:33:29 -0700
commit474ade88b58b6fd7239049ec445129eabafa3cbd (patch)
treed7d27c3812dfaf85be4d6aa98b3b31aae1054a6b /lib/std/meta
parent8944240aec6b53106856bb0ac2eb9da180f6b326 (diff)
downloadzig-474ade88b58b6fd7239049ec445129eabafa3cbd.tar.gz
zig-474ade88b58b6fd7239049ec445129eabafa3cbd.zip
std: fix compile errors found by stage2 AstGen
Diffstat (limited to 'lib/std/meta')
-rw-r--r--lib/std/meta/trait.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/meta/trait.zig b/lib/std/meta/trait.zig
index 481bfe212b..d9eb886c10 100644
--- a/lib/std/meta/trait.zig
+++ b/lib/std/meta/trait.zig
@@ -497,8 +497,8 @@ pub fn hasDecls(comptime T: type, comptime names: anytype) bool {
test "std.meta.trait.hasDecls" {
const TestStruct1 = struct {};
const TestStruct2 = struct {
- pub var a: u32;
- pub var b: u32;
+ pub var a: u32 = undefined;
+ pub var b: u32 = undefined;
c: bool,
pub fn useless() void {}
};