diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2020-11-27 20:48:53 +0100 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2020-11-27 20:48:53 +0100 |
| commit | d4048407880212bb820f85d2e06e5fc262cce897 (patch) | |
| tree | 5925b4bb10cdc79e29f475b04728ba8218fd479a /example | |
| parent | b5f6c0032ef4162c7d94e88adccbb586b38f49ea (diff) | |
| download | rust-d4048407880212bb820f85d2e06e5fc262cce897.tar.gz rust-d4048407880212bb820f85d2e06e5fc262cce897.zip | |
Merge commit '5988bbd24aa87732bfa1d111ba00bcdaa22c481a' into sync_cg_clif-2020-11-27
Diffstat (limited to 'example')
| -rw-r--r-- | example/std_example.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/example/std_example.rs b/example/std_example.rs index cb512a4aa33..b38e25328a4 100644 --- a/example/std_example.rs +++ b/example/std_example.rs @@ -53,6 +53,7 @@ fn main() { assert_eq!(0b0000000000000000000000000010000010000000000000000000000000000000_0000000000100000000000000000000000001000000000000100000000000000u128.leading_zeros(), 26); assert_eq!(0b0000000000000000000000000010000000000000000000000000000000000000_0000000000000000000000000000000000001000000000000000000010000000u128.trailing_zeros(), 7); + assert_eq!(core::intrinsics::saturating_sub(0, -170141183460469231731687303715884105728i128), 170141183460469231731687303715884105727i128); let _d = 0i128.checked_div(2i128); let _d = 0u128.checked_div(2u128); |
