about summary refs log tree commit diff
path: root/example/std_example.rs
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2019-08-14 15:18:05 +0200
committerbjorn3 <bjorn3@users.noreply.github.com>2019-08-14 15:18:05 +0200
commit9505d60a249b23044e7054684388fd4993ba1a32 (patch)
tree5697fe8aa30099796e6d7e96306bccd8ec0fc199 /example/std_example.rs
parentb4e55cdeddcf53953214aadb6eaa431a24aa2601 (diff)
downloadrust-9505d60a249b23044e7054684388fd4993ba1a32.tar.gz
rust-9505d60a249b23044e7054684388fd4993ba1a32.zip
Cast rhs to lhs type for shl and shr
Diffstat (limited to 'example/std_example.rs')
-rw-r--r--example/std_example.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/example/std_example.rs b/example/std_example.rs
index 7d1d8facdbe..7819881b69b 100644
--- a/example/std_example.rs
+++ b/example/std_example.rs
@@ -48,6 +48,8 @@ fn main() {
     assert_eq!(0xFEDCBA987654321123456789ABCDEFu128 as i128 >> 64, 0xFEDCBA98765432i128);
     assert_eq!(353985398u128 * 932490u128, 330087843781020u128);
 
+    let _a = 1u32 << 2u8;
+
     unsafe {
         test_simd();
     }