You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
warning: fields `width` and `height` are never read
--> src/main.rs:3:5
|
2 | struct Rectangle {
| --------- fields in this struct
3 | width: u32,
| ^^^^^^^^^^
4 | height: u32,
| ^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
= note: `Rectangle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
Suggested fix:
it would be nice to explain this for the first time in this chapter that you might see this dead_code message, but it's OK as mentioned in this ticket Chapter 11.1: Getting dead_code warning #2761 which will prevent future bug reports
The text was updated successfully, but these errors were encountered:
Thanks, but as with the linked issue, I think this is fine. It's actually important that people learn to read those messages and understand them (and even go look them up!) while reading the book, so having things like this along the way is not a problem but actually useful. And I am glad you learned that it wasn't a problem, so much so that you thought about helping others! Going to close this issue now.
main
branch to see if this has already been fixed, in this file:URL to the section(s) of the book with this problem:
Description of the problem:
Here is my warning message:
Suggested fix:
The text was updated successfully, but these errors were encountered: