Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
shrExact_shifts_out_1_bits.zig
pretty
plain
permalink
blame
history
•
8 lines
•
134 B
1
comptime {
2
const x = @shrExact(@as(u8, 0b10101010), 2);
3
_ = x;
4
}
5
6
// error
7
//
8
// :2:15: error: exact shift shifted out 1 bits