Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 239 Bytes

README.md

File metadata and controls

27 lines (19 loc) · 239 Bytes

rust hello world

Filename: main.rs :

fn main() {
    println!("Hello, world!");
}

On Linux or macOS:

$ rustc main.rs
$ ./main
Hello, world!

On Windows:

> rustc main.rs
> .\main.exe
Hello, world!