12 lines
320 B
Rust
12 lines
320 B
Rust
// expect: run
|
|
// result: {"variant":"overflow","payload":[]}
|
|
// equivalent: std/bounded_arithmetic.air
|
|
// phase: 6
|
|
// spec: docs/spec/16-standard-library.md §2.1.1
|
|
module test.bounded_arithmetic
|
|
import std.math;
|
|
|
|
fn main() -> std.math.U64Result
|
|
effects []
|
|
{ return std.math.checked_add_u64(18446744073709551615, 1); }
|