DEV Community

Discussion on: Benefits of Rust

Collapse
 
tbodt profile image
tbodt

One of the really cool things I saw when using Rust, was when I did something pretty stupid and compared if user input stored in an unsigned int was < 0. Guess what? Rust warned me about useless check!!

C does that too

Collapse
 
legolord208 profile image
jD91mZM2

You mean GCC? Or which compiler? Anyways, sounds good!

Collapse
 
tbodt profile image
tbodt

any compiler that supports -Wall