Did >>> ever exist in Rust?

https://www.tutorialspoint.com/rust/rust_operators.htm There's an operator >>> in such Rust tutorial, but it doesn't work in Rust Playground, the Rust Playground throwed an error.

I can't say for sure for pre-Rust 1.0 (released 2015), but we certainly don't have a >>> operator now.

I'm terms of good and accurate tutorial, the Rust book is generally recommended. It also features a complete list of operators (and other symbolic language features) in its appendix.

1 Like

I'm guessing this is just a mistake where they copied the table from another language and forgot to remove the >>> operators from the table.

2 Likes

In Rust you get the same effect when you apply the >> operator to an unsigned type.

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.