How to write and run your first program in the Rust language
How to print text and numbers on the terminal
How to write comments in your code
How to Start
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.
fn is shorthand for “function,” while main is the name of this function. The round parentheses contain the function’s possible arguments; ...