1 error[E0277]: `Foo` doesn't implement `std::fmt::Debug`
2 --> $DIR/no-debug.rs:20:27
4 20 | println!("{:?} {:?}", Foo, Bar);
5 | ^^^ `Foo` cannot be formatted using `:?`; add `#[derive(Debug)]` or manually implement `std::fmt::Debug`
7 = help: the trait `std::fmt::Debug` is not implemented for `Foo`
8 = note: required by `std::fmt::Debug::fmt`
10 error[E0277]: `no_debug::Bar` doesn't implement `std::fmt::Debug`
11 --> $DIR/no-debug.rs:20:32
13 20 | println!("{:?} {:?}", Foo, Bar);
14 | ^^^ `no_debug::Bar` cannot be formatted using `:?` because it doesn't implement `std::fmt::Debug`
16 = help: the trait `std::fmt::Debug` is not implemented for `no_debug::Bar`
17 = note: required by `std::fmt::Debug::fmt`
19 error[E0277]: `Foo` doesn't implement `std::fmt::Display`
20 --> $DIR/no-debug.rs:21:23
22 21 | println!("{} {}", Foo, Bar);
23 | ^^^ `Foo` cannot be formatted with the default formatter; try using `:?` instead if you are using a format string
25 = help: the trait `std::fmt::Display` is not implemented for `Foo`
26 = note: required by `std::fmt::Display::fmt`
28 error[E0277]: `no_debug::Bar` doesn't implement `std::fmt::Display`
29 --> $DIR/no-debug.rs:21:28
31 21 | 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 = help: the trait `std::fmt::Display` is not implemented for `no_debug::Bar`
35 = note: required by `std::fmt::Display::fmt`
37 error: aborting due to 4 previous errors