]> git.proxmox.com Git - rustc.git/blame - src/doc/book/listings/ch05-using-structs-to-structure-related-data/output-only-01-debug/output.txt
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / src / doc / book / listings / ch05-using-structs-to-structure-related-data / output-only-01-debug / output.txt
CommitLineData
74b04a01 1$ cargo run
6a06907d 2 Compiling rectangles v0.1.0 (file:///projects/rectangles)
fc512014 3error[E0277]: `Rectangle` doesn't implement `Debug`
74b04a01
XL
4 --> src/main.rs:12:31
5 |
612 | println!("rect1 is {:?}", rect1);
7 | ^^^^^ `Rectangle` cannot be formatted using `{:?}`
8 |
fc512014
XL
9 = help: the trait `Debug` is not implemented for `Rectangle`
10 = note: add `#[derive(Debug)]` or manually implement `Debug`
74b04a01 11 = note: required by `std::fmt::Debug::fmt`
fc512014 12 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
74b04a01
XL
13
14error: aborting due to previous error
15
16For more information about this error, try `rustc --explain E0277`.
6a06907d 17error: could not compile `rectangles`
74b04a01
XL
18
19To learn more, run the command again with --verbose.