Rust Introduction
Rust is a systems language that gives C like speed with memory safety and no garbage collector. The compiler checks ownership rules so whole classes of bugs cannot happen. It is used in browsers, operating systems and web services.
Example
fn main() {
println!("Hello, Rust!");
}Result
Hello, Rust!
- Fragments below omit fn main. Wrap them to run.
Exercise
Which macro prints a line?
!("Hi");Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.