How to write and run your first program in the Rust Language
How to output texts and numbers on the terminal
How to write a small script that makes more readable the output of the compiler
How to write comments in your code
How to Start
The smallest valid Rust program is:
Of course, it does nothing. It just defines an empty function named “main”. By “function” we mean a set of instructions that does something and that has been given a name.
The "fn" word is shorthand for “function”. The "main" word is the name of the function . The round parentheses contain ...