diff options
| author | mlugg <mlugg@mlugg.co.uk> | 2024-12-30 01:56:48 +0000 |
|---|---|---|
| committer | mlugg <mlugg@mlugg.co.uk> | 2024-12-31 09:55:04 +0000 |
| commit | 9ff80d7950a720cf80294ceaec54cc33d22f8871 (patch) | |
| tree | f0ce20049b120f23316ff5a2b5756c71f30036e1 /test/cases/compile_errors/condition_comptime_reason_explained.zig | |
| parent | 07b936c95fb460c1b71b0b246ba1576167442721 (diff) | |
| download | zig-9ff80d7950a720cf80294ceaec54cc33d22f8871.tar.gz zig-9ff80d7950a720cf80294ceaec54cc33d22f8871.zip | |
cases: update to new compile error wordings
Diffstat (limited to 'test/cases/compile_errors/condition_comptime_reason_explained.zig')
| -rw-r--r-- | test/cases/compile_errors/condition_comptime_reason_explained.zig | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/test/cases/compile_errors/condition_comptime_reason_explained.zig b/test/cases/compile_errors/condition_comptime_reason_explained.zig index 2e9c47522a..d641b6176b 100644 --- a/test/cases/compile_errors/condition_comptime_reason_explained.zig +++ b/test/cases/compile_errors/condition_comptime_reason_explained.zig @@ -33,18 +33,14 @@ pub export fn entry2() void { } // error -// backend=stage2 -// target=native // // :8:9: error: unable to resolve comptime value -// :8:9: note: condition in comptime branch must be comptime-known -// :7:13: note: expression is evaluated at comptime because the function returns a comptime-only type 'tmp.S' +// :19:15: note: called at comptime from here +// :7:13: note: function with comptime-only return type 'tmp.S' is evaluated at comptime // :2:12: note: struct requires comptime because of this field // :2:12: note: use '*const fn () void' for a function pointer type -// :19:15: note: called from here // :22:13: error: unable to resolve comptime value -// :22:13: note: condition in comptime switch must be comptime-known -// :21:17: note: expression is evaluated at comptime because the function returns a comptime-only type 'tmp.S' +// :32:19: note: called at comptime from here +// :21:17: note: function with comptime-only return type 'tmp.S' is evaluated at comptime // :2:12: note: struct requires comptime because of this field // :2:12: note: use '*const fn () void' for a function pointer type -// :32:19: note: called from here |
