aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/shlExact_shifts_out_1_bits.zig
blob: 9c9748fbe26b1138781e5cca427f9f88c9ce5f23 (plain)
1
2
3
4
5
6
7
8
comptime {
    const x = @shlExact(@as(u8, 0b01010101), 2);
    _ = x;
}

// error
//
// :2:15: error: overflow of integer type 'u8' with value '340'