use works on unions and enums in addition to structs

This commit is contained in:
Andrew Kelley
2019-05-29 16:31:49 -04:00
parent 9891c4f30d
commit 1ccbd1fb67
4 changed files with 16 additions and 20 deletions

View File

@@ -163,7 +163,7 @@ pub fn addCases(cases: *tests.CompileErrorContext) void {
"usingnamespace with wrong type",
\\use void;
,
"tmp.zig:1:1: error: expected struct, found 'void'",
"tmp.zig:1:1: error: expected struct, enum, or union; found 'void'",
);
cases.add(