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)]` 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 help: consider annotating `Foo` with `#[derive(Debug)]`
15 error[E0277]: `Bar` doesn't implement `Debug`
16 --> $DIR/no-debug.rs:10:32
18 LL | println!("{:?} {:?}", Foo, Bar);
19 | ^^^ `Bar` cannot be formatted using `{:?}` because it doesn't implement `Debug`
21 = help: the trait `Debug` is not implemented for `Bar`
22 = note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info)
24 error[E0277]: `Foo` doesn't implement `std::fmt::Display`
25 --> $DIR/no-debug.rs:11:23
27 LL | println!("{} {}", Foo, Bar);
28 | ^^^ `Foo` cannot be formatted with the default formatter
30 = help: the trait `std::fmt::Display` is not implemented for `Foo`
31 = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
32 = note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info)
34 error[E0277]: `Bar` doesn't implement `std::fmt::Display`
35 --> $DIR/no-debug.rs:11:28
37 LL | println!("{} {}", Foo, Bar);
38 | ^^^ `Bar` cannot be formatted with the default formatter
40 = help: the trait `std::fmt::Display` is not implemented for `Bar`
41 = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
42 = note: this error originates in the macro `$crate::format_args_nl` (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`.