gistlib
To print "Hello, world!" in Rust, you can use the println! macro:
println!
main.rsfn main() { println!("Hello, world!"); } 45 chars4 lines
fn main() { println!("Hello, world!"); }
This will print Hello, world! to the console when you run the program.
Hello, world!
gistlibby LogSnag