]> git.lizzy.rs Git - rust.git/blobdiff - example/std_example.rs
Fix rotate_left and rotate_right with 128bit shift amount
[rust.git] / example / std_example.rs
index b38e25328a4eece82b29334128f293e498a4b188..437b7726980bf02633868fc6f359ccf13cd64643 100644 (file)
@@ -15,6 +15,8 @@ fn main() {
     let stderr = ::std::io::stderr();
     let mut stderr = stderr.lock();
 
+    // FIXME support lazy jit when multi threading
+    #[cfg(not(lazy_jit))]
     std::thread::spawn(move || {
         println!("Hello from another thread!");
     });
@@ -82,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;