Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
bitCast_vector_of_pointer.zig
pretty
plain
permalink
blame
history
•
9 lines
•
201 B
1
export fn foo(p: *u32) void {
2
const vec: @Vector(2, *u32) = .{ p, p };
3
const raw: [2]usize = @bitCast(vec);
4
_ = raw;
5
}
6
7
// error
8
//
9
// :3:36: error: cannot @bitCast from '@Vector(2, *u32)'