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