Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
alignCast_expects_pointer_or_slice.zig
pretty
plain
permalink
blame
history
•
8 lines
•
157 B
1
export fn entry() void {
2
const x: *align(8) u32 = @alignCast(@as(u32, 3));
3
_ = x;
4
}
5
6
// error
7
//
8
// :2:41: error: expected pointer type, found 'u32'