aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/shrExact_shifts_out_1_bits.zig
blob: 5dab96594c77f5138f518a07c00d26c1071af668 (plain)
1
2
3
4
5
6
7
8
comptime {
    const x = @shrExact(@as(u8, 0b10101010), 2);
    _ = x;
}

// error
//
// :2:15: error: exact shift shifted out 1 bits