]>
Commit | Line | Data |
---|---|---|
74b04a01 | 1 | $ cargo run |
6a06907d | 2 | Compiling rectangles v0.1.0 (file:///projects/rectangles) |
fc512014 | 3 | error[E0277]: `Rectangle` doesn't implement `Debug` |
74b04a01 XL |
4 | --> src/main.rs:12:31 |
5 | | | |
6 | 12 | println!("rect1 is {:?}", rect1); | |
7 | | ^^^^^ `Rectangle` cannot be formatted using `{:?}` | |
8 | | | |
fc512014 | 9 | = help: the trait `Debug` is not implemented for `Rectangle` |
c295e0f8 | 10 | = note: add `#[derive(Debug)]` to `Rectangle` or manually `impl Debug for Rectangle` |
487cf647 | 11 | = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) |
064997fb FG |
12 | help: consider annotating `Rectangle` with `#[derive(Debug)]` |
13 | | | |
14 | 1 | #[derive(Debug)] | |
15 | | | |
74b04a01 | 16 | |
74b04a01 | 17 | For more information about this error, try `rustc --explain E0277`. |
c295e0f8 | 18 | error: could not compile `rectangles` due to previous error |