3 In software, a "lint" is a tool used to help improve your source code. The
4 Rust compiler contains a number of lints, and when it compiles your code, it will
5 also run the lints. These lints may produce a warning, an error, or nothing at all,
6 depending on how you've configured things.
8 Here's a small example:
16 warning: unused variable: `x`
22 = note: #[warn(unused_variables)] on by default
23 = note: to avoid this warning, consider using `_x` instead
26 This is the `unused_variables` lint, and it tells you that you've introduced
27 a variable that you don't use in your code. That's not *wrong*, so it's not
28 an error, but it might be a bug, so you get a warning.