// 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!");
}
fn main() {
println!("Hello, world!");
}
// Hello World! in Rust
fn main() {
println!("Hello World!");
}
rustc hello.rs
$ ./hello
Hello World!
fn main() {
println!("Hello, World!")
}
// This code is editable, feel free to hack it!
// 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!");
}