hwllo world in rust
Sure! Here's a simple "Hello, World!" program in Rust:
fn main() {
println!("Hello, World!");
}
This program defines a main
function, which is the entry point of a Rust program. The println!
macro is used to print the "Hello, World!" message to the console. When you run this program, you should see the message displayed in the output.