mirror of
https://github.com/ziglang/zig.git
synced 2024-11-30 09:02:32 +00:00
9 lines
149 B
Zig
9 lines
149 B
Zig
comptime {
|
|
const a: u32 = 10;
|
|
const b: u32 = 3;
|
|
const c = @divExact(a, b);
|
|
_ = c;
|
|
}
|
|
|
|
// test_error=exact division produced remainder
|