diff options
| author | Veikka Tuominen <git@vexu.eu> | 2022-07-11 15:39:21 +0300 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2022-07-11 17:55:19 +0300 |
| commit | 20d4f7213dde1ffabe0880bbee46a1de44d586fc (patch) | |
| tree | e60caf13833e99bbd092b67743baceeac4bf4e6e /test/cases/compile_errors/incompatible_sentinels.zig | |
| parent | c9e1360cdba2bc0c20dc04a3d22fbc0002bcd70b (diff) | |
| download | zig-20d4f7213dde1ffabe0880bbee46a1de44d586fc.tar.gz zig-20d4f7213dde1ffabe0880bbee46a1de44d586fc.zip | |
Sema: add notes about function return type
Diffstat (limited to 'test/cases/compile_errors/incompatible_sentinels.zig')
| -rw-r--r-- | test/cases/compile_errors/incompatible_sentinels.zig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/cases/compile_errors/incompatible_sentinels.zig b/test/cases/compile_errors/incompatible_sentinels.zig index a2ed320e18..821a0a8c69 100644 --- a/test/cases/compile_errors/incompatible_sentinels.zig +++ b/test/cases/compile_errors/incompatible_sentinels.zig @@ -21,8 +21,10 @@ export fn entry4() void { // // :4:12: error: expected type '[*:0]u8', found '[*:255]u8' // :4:12: note: pointer sentinel '255' cannot cast into pointer sentinel '0' +// :3:35: note: function return type declared here // :7:12: error: expected type '[*:0]u8', found '[*]u8' // :7:12: note: destination pointer requires '0' sentinel +// :6:31: note: function return type declared here // :10:35: error: expected type '[2:0]u8', found '[2:255]u8' // :10:35: note: array sentinel '255' cannot cast into array sentinel '0' // :14:31: error: expected type '[2:0]u8', found '[2]u8' |
