Check out example codes for "hello world rust". It will help you in understanding the concepts better.

Code Example 1

// This is the main function
fn main() {
    // Statements here are executed when the compiled binary is called

    // Print text to the console
    println!("Hello World!");
}

Learn ReactJs, React Native from akashmittal.com