# Lesson 6: Pattern matching This lesson covers pattern matching. You'll read a short explanation, try three small exercises and finish with a quiz. Full lesson: [https://glibcode.net/courses/rust-ownership/lessons/6](https://glibcode.net/courses/rust-ownership/lessons/6) ## Files - `src/main.rs`: match on enums, tuples and ranges > **Tip:** `cargo check` is much faster than `cargo build` while you are still fixing errors. > **Tip:** `cargo clippy` explains a lot of borrow-checker surprises in plain words. ## Run it ```sh cargo run ``` ## Exercises See [exercises.md](exercises.md). Ask in the forum after you have tried.