#zig build-obj {
--name test -fno-emit-bin
-Mroot=test.zig
#}

#write test.zig {
comptime {
    const c: [][]const u8 = &.{ "hello", "world" };
    _ = c;
}
comptime {
    const c: *[2][]const u8 = &.{ "hello", "world" };
    _ = c;
}
const S = struct { a: u8 = 1, b: u32 = 2 };
comptime {
    const c: *S = &.{ .a = 2 };
    _ = c;
}
#}
#update
#check errors {
test.zig:2:29: error: expected type '[][]const u8', found '*const [2][]const u8'
test.zig:2:29: note: cast discards const qualifier
test.zig:6:31: error: expected type '*[2][]const u8', found '*const [2][]const u8'
test.zig:6:31: note: cast discards const qualifier
test.zig:11:19: error: expected type '*test.S', found '*const test.S'
test.zig:11:19: note: cast discards const qualifier
#}
