diff options
| author | mlugg <mlugg@mlugg.co.uk> | 2023-11-11 07:27:31 +0000 |
|---|---|---|
| committer | mlugg <mlugg@mlugg.co.uk> | 2023-11-19 09:56:51 +0000 |
| commit | 21fa187abc2a06c9bd5cfe4355c5edbfb3177f6b (patch) | |
| tree | aab7cc16498184bac0fd8b6d5443f7bd606e7bf8 /test/cases/compile_errors/invalid_struct_field.zig | |
| parent | 2c1acb618027939c0812bc87a432b51632127717 (diff) | |
| download | zig-21fa187abc2a06c9bd5cfe4355c5edbfb3177f6b.tar.gz zig-21fa187abc2a06c9bd5cfe4355c5edbfb3177f6b.zip | |
test: update cases to silence 'var is never mutated' errors
Diffstat (limited to 'test/cases/compile_errors/invalid_struct_field.zig')
| -rw-r--r-- | test/cases/compile_errors/invalid_struct_field.zig | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/cases/compile_errors/invalid_struct_field.zig b/test/cases/compile_errors/invalid_struct_field.zig index ff8c96a0b6..7a3922dd1f 100644 --- a/test/cases/compile_errors/invalid_struct_field.zig +++ b/test/cases/compile_errors/invalid_struct_field.zig @@ -8,6 +8,7 @@ export fn f() void { export fn g() void { var a: A = undefined; const y = a.bar; + _ = &a; _ = y; } export fn e() void { @@ -26,5 +27,5 @@ export fn e() void { // :1:11: note: struct declared here // :10:17: error: no field named 'bar' in struct 'tmp.A' // :1:11: note: struct declared here -// :18:45: error: no field named 'f' in struct 'tmp.e.B' -// :14:15: note: struct declared here +// :19:45: error: no field named 'f' in struct 'tmp.e.B' +// :15:15: note: struct declared here |
