1.

How to write and run a Rust program?

Answer»

CREATE a FILE name main.rs and the below-given code in it.
fn main() {
    println!("Hello, Rust!");
}

For MACOS and Linux to RUN open terminal, put below command
$ rustc main.rs
$ ./main



Discussion

No Comment Found