| author | |
| committer | |
| log | 34b314509919d85a6b6ff9de3bbdad2fec6b2b78 |
| tree | 0e1b2a1dd73e3a519cf746d0c2093531ceb97976 |
| parent | 9a29f4e0387f0480273ca4347ee43e4917cad8e2 |
1 files changed, 2 insertions(+), 2 deletions(-)
test/cases/compile_errors/invalid_member_of_builtin_enum.zig+2-2| ... | ... | @@ -1,6 +1,6 @@ |
| 1 | 1 | const builtin = @import("std").builtin; |
| 2 | 2 | export fn entry() void { |
| 3 | const foo = builtin.Mode.x86; | |
| 3 | const foo = builtin.OptimizeMode.x86; | |
| 4 | 4 | _ = foo; |
| 5 | 5 | } |
| 6 | 6 | |
| ... | ... | @@ -8,5 +8,5 @@ export fn entry() void { |
| 8 | 8 | // backend=stage2 |
| 9 | 9 | // target=native |
| 10 | 10 | // |
| 11 | // :3:30: error: enum 'builtin.Mode' has no member named 'x86' | |
| 11 | // :3:38: error: enum 'builtin.OptimizeMode' has no member named 'x86' | |
| 12 | 12 | // :?:18: note: enum declared here |