Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "Which statement correctly distinguishes a Cargo package, a crate, and a module?" on CodeWiki (https://codewiki.com/practice/mcq/rust/modules-crates/distinguish-package-crate-module/).
Context (verbatim from the page):
"""
Which statement correctly distinguishes a Cargo package, a crate, and a module?
A package is described by Cargo.toml, a crate is one compilation unit, and modules organize names inside a crate.
Every Rust source file is a separate package and crate.
A package may contain only one binary crate and any number of library crates.
Modules are Cargo targets, while crates are only filesystem directories.
"""
Introduce three subtle bugs into the example above and let me find them. Reveal each answer only after I have guessed.
Answer in English. Keep code examples in Rust. Where you are unsure, say so.