]> 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 221b512e3bd4c63445fcafe3c92c5d327a04c6b9..437b7726980bf02633868fc6f359ccf13cd64643 100644 (file)
@@ -16,8 +16,7 @@ fn main() {
     let mut stderr = stderr.lock();
 
     // FIXME support lazy jit when multi threading
-    // FIXME support TLS on windows
-    #[cfg(not(any(lazy_jit, windows)))]
+    #[cfg(not(lazy_jit))]
     std::thread::spawn(move || {
         println!("Hello from another thread!");
     });
@@ -85,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;