master
 1comptime {
 2    var ptr: [*]const u8 = undefined;
 3    _ = ptr[0.. :0];
 4}
 5
 6comptime {
 7    var ptrz: [*:0]const u8 = undefined;
 8    _ = ptrz[0.. :1];
 9}
10
11// error
12//
13// :3:18: error: sentinel-terminated slicing of many-item pointer must match existing sentinel
14// :3:9: note: type '[*]const u8' does not have a sentinel
15// :3:12: note: use @ptrCast to cast pointer sentinel
16// :8:19: error: sentinel-terminated slicing of many-item pointer must match existing sentinel
17// :8:19: note: expected sentinel '0', found '1'
18// :8:13: note: use @ptrCast to cast pointer sentinel