I'd expect 1u64 >> -1i32 to return 2, moving right by a negative distance is just moving left, but instead it panics.

Playground: Rust Playground

9 posts - 3 participants

Read full topic