How to Disable Dead Code Warnings at the Crate Level in Rust Quiz
Test your understanding of Rust crate-level `dead_code` lint suppression, inner vs outer attributes, scope, mistakes, and examples.
Quizzes
Choose a quiz and test your understanding of a focused concept.
Test your understanding of Rust crate-level `dead_code` lint suppression, inner vs outer attributes, scope, mistakes, and examples.
Test your Rust knowledge on matching String values with &str literals in match expressions, borrowing with as_str(), and common pitfalls.
Test your understanding of Rust type inference, `std::any::type_name`, default `f64`, and common mistakes when printing types.
Test Python string concatenation with `str`, custom string-like values, `+`, `str()`, f-strings, and common mistakes.
Test your understanding of Rust packages with both a library and binary crate, Cargo.toml defaults, crate naming, and common mistakes.
Test your understanding of why Rust rejects self-referential structs, lifetime errors, moves, and safer design alternatives.
Test your understanding of converting String and &str to integers in Rust with parse(), Result handling, common mistakes, and examples.
Test your understanding of Rust `String` vs `&str`, including ownership, borrowing, function design, UTF-8 slicing, and common mistakes.
Test your understanding of Rust `iter()`, `iter_mut()`, and `into_iter()` with practical questions on ownership and iteration.
Test your understanding of why `println!` output is hidden in Rust unit tests, how `--nocapture` works, and common testing mistakes.