The documentation states that abs(::MIN) returns ::MIN. However, the current behavior is to panic on integer min value.
This is easily reproducible on the stable Rust playground.
https://play.rust-lang.org/?version=stable&mode=debug&edition=2024&gist=447346fe7ffc16a8c46eb694f30138ac
Thanks
The documentation states that
abs(::MIN)returns::MIN. However, the current behavior is to panic on integer min value.This is easily reproducible on the stable Rust playground.
https://play.rust-lang.org/?version=stable&mode=debug&edition=2024&gist=447346fe7ffc16a8c46eb694f30138ac
Thanks