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

#write test.zig {
fn ignore(comptime param: anytype) void {
    _ = param;
}

export fn foo() void {
    const MyStruct = struct {
        wrong_type: []u8 = "foo",
    };

    comptime ignore(@typeInfo(MyStruct).@"struct".field_names[0]);
}
#}
#update
#check errors {
test.zig:7:28: error: expected type '[]u8', found '*const [3:0]u8'
test.zig:7:28: note: cast discards const qualifier
#}
