Loading tutorials
let bindings, structs, enums, and match. You should be able to run cargo build and cargo run in a terminal. You should also have met ownership and references once, though you do not need to master them yet.2 min readcargo build and cargo run, and that you can read the basic parts of a rustc diagnostic: the error code, the message, and the source labels. You will use cargo check to build a fast, repeatable loop for fixing errors.3 min readcargo check, read the basic layout of a rustc diagnostic (message, span, labels, help), and know what a move and a borrow are. Here you learn what the code in brackets means and how to get more detail on it.3 min readlet bindings, run cargo check, and recognize the parts of a rustc diagnostic: the error code, the message, the primary span, and the help text.3 min readcargo check. It covers errors where the compiler cannot find a name you used.3 min readcargo check, and know what let bindings and references are. Here you will fix the errors that appear when code changes a value that Rust treats as read-only.2 min read& and &mut references. Here you learn why the borrow checker rejects some programs and how to rewrite them so it accepts them.2 min readmatch syntax, and that you can read the layout of a rustc diagnostic from earlier chapters. It covers error E0004, which appears when a match does not handle every possible value.2 min readcargo check. It covers which suggestions you can trust and how to apply them with cargo fix.3 min readcargo check. Here you will learn why one mistake can produce a long list of errors, and why the first error is usually the one to fix.3 min readcargo check, and look up an error code with rustc --explain. Those skills are covered in earlier chapters. Here you learn what to do when an error still makes no sense: shrink the program until only the cause remains.2 min read