You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
println!("{}", !0u32);// 4294967295println!("{}", !0u32/2);// error: attempted to divide with overflow in a constant expression [E0020]constA:u32 = !0;println!("{}",A/2);// error: attempted to divide with overflow in a constant expression [E0020]let a:u32 = !0;println!("{}", a/2);// 2147483647constB:u32 = 4294967295;println!("{}",A == B);// trueprintln!("{}",B/2);// 2147483647
This affects the test suites for the num and rand crates.