2021-05-09 14:49:31 +08:00
|
|
|
$ cargo run
|
|
|
|
Compiling rectangles v0.1.0 (file:///projects/rectangles)
|
|
|
|
error[E0277]: `Rectangle` doesn't implement `Debug`
|
|
|
|
--> src/main.rs:12:31
|
|
|
|
|
|
|
|
|
12 | println!("rect1 is {:?}", rect1);
|
|
|
|
| ^^^^^ `Rectangle` cannot be formatted using `{:?}`
|
|
|
|
|
|
|
|
|
= help: the trait `Debug` is not implemented for `Rectangle`
|
2022-01-30 14:09:43 +08:00
|
|
|
= note: add `#[derive(Debug)]` to `Rectangle` or manually `impl Debug for Rectangle`
|
|
|
|
= note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2021-05-09 14:49:31 +08:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|
2022-01-30 14:09:43 +08:00
|
|
|
error: could not compile `rectangles` due to previous error
|