Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/hello/print/print_display.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,9 @@ fn main() {
println!("Display: {}", point);
println!("Debug: {:?}", point);

// Error. Both `Debug` and `Display` were implemented, but `{:b}`
// requires `fmt::Binary` to be implemented. This will not work.
// The following line would not compile: both `Debug` and `Display`
// were implemented, but `{:b}` requires `fmt::Binary` to be
// implemented, which it hasn't been for `Point2D`.
// println!("What does Point2D look like in binary: {:b}?", point);
}
```
Expand Down
Loading