Get the most from each lesson's compiled editor—the same habits that transfer to VS Code, rust-analyzer, and CI running cargo test.
Recommended workflow
- Read the concept section before editing code.
- Click Run to compile with
rustcand execute. - Use
println!and{:?}for debug output. - Change one idea at a time; read borrow checker messages carefully.
What the runner can and cannot do
- Can — single-file
fn mainwith the standard library - Needs local setup — Cargo workspaces, async runtimes, WASM builds
Review JavaScript, Java, and C++ for comparison context.
Self-check
- What macro prints to stdout in Rust lessons?
- What is the first step when the borrow checker rejects your code?
Challenge
First compile and run
- Click Run with the default code.
- Confirm output appears in the terminal.
- Add a second
println!with your name.
Done when: the terminal shows the default message and your custom line.
Challenge
Verify compile output
- Run the default program.
- Confirm output in the terminal.
- Introduce a move error (use a String after move) and read the message.
- Fix and run again.
Done when: you see a clear compile error when broken and successful output after fixing.