about summary refs log tree commit diff
path: root/example
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2021-04-16 14:02:57 +0200
committerbjorn3 <bjorn3@users.noreply.github.com>2021-04-16 14:08:10 +0200
commit6d6c5742896fab93788b4dabb6ba2fcf1881f5e2 (patch)
tree3a7b905b8509a262f393e1485a0e94c3294e676f /example
parent944308089f4cc8f1384df80d00f735609358e550 (diff)
downloadrust-6d6c5742896fab93788b4dabb6ba2fcf1881f5e2.tar.gz
rust-6d6c5742896fab93788b4dabb6ba2fcf1881f5e2.zip
Fix rotate_left and rotate_right with 128bit shift amount
Fixes #1114
Diffstat (limited to 'example')
-rw-r--r--example/std_example.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/example/std_example.rs b/example/std_example.rs
index 015bbdfed46..437b7726980 100644
--- a/example/std_example.rs
+++ b/example/std_example.rs
@@ -84,6 +84,7 @@ fn main() {
     assert_eq!(houndred_i128 as f64, 100.0);
     assert_eq!(houndred_f32 as i128, 100);
     assert_eq!(houndred_f64 as i128, 100);
+    assert_eq!(1u128.rotate_left(2), 4);
 
     // Test signed 128bit comparing
     let max = usize::MAX as i128;