1 error[E0277]: `Foo` doesn't implement `Debug`
2 --> $DIR/no-debug.rs:10:27
4 LL | println!("{:?} {:?}", Foo, Bar);
5 | ^^^ `Foo` cannot be formatted using `{:?}`
7 = help: the trait `Debug` is not implemented for `Foo`
8 = note: add `#[derive(Debug)]` or manually implement `Debug`
9 = note: required by `std::fmt::Debug::fmt`
10 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
12 error[E0277]: `Bar` doesn't implement `Debug`
13 --> $DIR/no-debug.rs:10:32
15 LL | println!("{:?} {:?}", Foo, Bar);
16 | ^^^ `Bar` cannot be formatted using `{:?}` because it doesn't implement `Debug`
18 = help: the trait `Debug` is not implemented for `Bar`
19 = note: required by `std::fmt::Debug::fmt`
20 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
22 error[E0277]: `Foo` doesn't implement `std::fmt::Display`
23 --> $DIR/no-debug.rs:11:23
25 LL | println!("{} {}", Foo, Bar);
26 | ^^^ `Foo` cannot be formatted with the default formatter
28 = help: the trait `std::fmt::Display` is not implemented for `Foo`
29 = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
30 = note: required by `std::fmt::Display::fmt`
31 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
33 error[E0277]: `Bar` doesn't implement `std::fmt::Display`
34 --> $DIR/no-debug.rs:11:28
36 LL | println!("{} {}", Foo, Bar);
37 | ^^^ `Bar` cannot be formatted with the default formatter
39 = help: the trait `std::fmt::Display` is not implemented for `Bar`
40 = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
41 = note: required by `std::fmt::Display::fmt`
42 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
44 error: aborting due to 4 previous errors
46 For more information about this error, try `rustc --explain E0277`.