@@ -2,16 +2,17 @@ error[E0277]: `Foo` doesn't implement `std::fmt::Debug`
22 --> $DIR/no-debug.rs:20:27
33 |
44LL | println!("{:?} {:?}", Foo, Bar);
5- | ^^^ `Foo` cannot be formatted using `:?`; add `#[derive(Debug)]` or manually implement `std::fmt::Debug `
5+ | ^^^ `Foo` cannot be formatted using `{:?} `
66 |
77 = help: the trait `std::fmt::Debug` is not implemented for `Foo`
8+ = note: add `#[derive(Debug)]` or manually implement `std::fmt::Debug`
89 = note: required by `std::fmt::Debug::fmt`
910
1011error[E0277]: `no_debug::Bar` doesn't implement `std::fmt::Debug`
1112 --> $DIR/no-debug.rs:20:32
1213 |
1314LL | println!("{:?} {:?}", Foo, Bar);
14- | ^^^ `no_debug::Bar` cannot be formatted using `:? ` because it doesn't implement `std::fmt::Debug`
15+ | ^^^ `no_debug::Bar` cannot be formatted using `{:?} ` because it doesn't implement `std::fmt::Debug`
1516 |
1617 = help: the trait `std::fmt::Debug` is not implemented for `no_debug::Bar`
1718 = note: required by `std::fmt::Debug::fmt`
@@ -20,18 +21,20 @@ error[E0277]: `Foo` doesn't implement `std::fmt::Display`
2021 --> $DIR/no-debug.rs:21:23
2122 |
2223LL | println!("{} {}", Foo, Bar);
23- | ^^^ `Foo` cannot be formatted with the default formatter; try using `:?` instead if you are using a format string
24+ | ^^^ `Foo` cannot be formatted with the default formatter
2425 |
2526 = help: the trait `std::fmt::Display` is not implemented for `Foo`
27+ = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
2628 = note: required by `std::fmt::Display::fmt`
2729
2830error[E0277]: `no_debug::Bar` doesn't implement `std::fmt::Display`
2931 --> $DIR/no-debug.rs:21:28
3032 |
3133LL | println!("{} {}", Foo, Bar);
32- | ^^^ `no_debug::Bar` cannot be formatted with the default formatter; try using `:?` instead if you are using a format string
34+ | ^^^ `no_debug::Bar` cannot be formatted with the default formatter
3335 |
3436 = help: the trait `std::fmt::Display` is not implemented for `no_debug::Bar`
37+ = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
3538 = note: required by `std::fmt::Display::fmt`
3639
3740error: aborting due to 4 previous errors
0 commit comments