]> git.proxmox.com Git - rustc.git/blame - src/doc/book/listings/ch05-using-structs-to-structure-related-data/listing-05-11/output.txt
New upstream version 1.67.1+dfsg1
[rustc.git] / src / doc / book / listings / ch05-using-structs-to-structure-related-data / listing-05-11 / output.txt
CommitLineData
74b04a01 1$ cargo run
6a06907d 2 Compiling rectangles v0.1.0 (file:///projects/rectangles)
74b04a01
XL
3error[E0277]: `Rectangle` doesn't implement `std::fmt::Display`
4 --> src/main.rs:12:29
5 |
612 | println!("rect1 is {}", rect1);
7 | ^^^^^ `Rectangle` cannot be formatted with the default formatter
8 |
9 = help: the trait `std::fmt::Display` is not implemented for `Rectangle`
10 = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
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)
74b04a01 12
74b04a01 13For more information about this error, try `rustc --explain E0277`.
c295e0f8 14error: could not compile `rectangles` due to previous error