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
Your experience on this site will be improved by allowing cookies. Read Cookie Policy