Check out example codes for "rust compile and run". It will help you in understanding the concepts better.

Code Example 1

//In the command line:
---------------------------------------------
>rustc main.rs						//Compiles the main.rs file to main.exe and main.pdb
>main								//Runs the program

Learn ReactJs, React Native from akashmittal.com