aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/@intCast_on_vec.zig
blob: 6f079109151a852cafde83e0223fd3d09e11750c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
export fn entry() void {
    const a = @Vector(4, u32){ 1, 1, 1, 1 };
    _ = @as(u32, @intCast(a));
}

// TODO: change target in the manifest to "native" probably after this is fixed:
//       https://github.com/ziglang/zig/issues/13782

// error
// target=x86_64-linux
//
// :3:27: error: expected type 'u32', found '@Vector(4, u32)'