]>
Commit | Line | Data |
---|---|---|
2c00a5a8 XL |
1 | error[E0277]: `Foo` doesn't implement `std::fmt::Debug` |
2 | --> $DIR/no-debug.rs:20:27 | |
3 | | | |
0531ce1d | 4 | LL | println!("{:?} {:?}", Foo, Bar); |
2c00a5a8 XL |
5 | | ^^^ `Foo` cannot be formatted using `:?`; add `#[derive(Debug)]` or manually implement `std::fmt::Debug` |
6 | | | |
7 | = help: the trait `std::fmt::Debug` is not implemented for `Foo` | |
8 | = note: required by `std::fmt::Debug::fmt` | |
9 | ||
10 | error[E0277]: `no_debug::Bar` doesn't implement `std::fmt::Debug` | |
11 | --> $DIR/no-debug.rs:20:32 | |
12 | | | |
0531ce1d | 13 | LL | println!("{:?} {:?}", Foo, Bar); |
2c00a5a8 XL |
14 | | ^^^ `no_debug::Bar` cannot be formatted using `:?` because it doesn't implement `std::fmt::Debug` |
15 | | | |
16 | = help: the trait `std::fmt::Debug` is not implemented for `no_debug::Bar` | |
17 | = note: required by `std::fmt::Debug::fmt` | |
18 | ||
19 | error[E0277]: `Foo` doesn't implement `std::fmt::Display` | |
20 | --> $DIR/no-debug.rs:21:23 | |
21 | | | |
0531ce1d | 22 | LL | println!("{} {}", Foo, Bar); |
2c00a5a8 XL |
23 | | ^^^ `Foo` cannot be formatted with the default formatter; try using `:?` instead if you are using a format string |
24 | | | |
25 | = help: the trait `std::fmt::Display` is not implemented for `Foo` | |
26 | = note: required by `std::fmt::Display::fmt` | |
27 | ||
28 | error[E0277]: `no_debug::Bar` doesn't implement `std::fmt::Display` | |
29 | --> $DIR/no-debug.rs:21:28 | |
30 | | | |
0531ce1d | 31 | LL | println!("{} {}", Foo, Bar); |
2c00a5a8 XL |
32 | | ^^^ `no_debug::Bar` cannot be formatted with the default formatter; try using `:?` instead if you are using a format string |
33 | | | |
34 | = help: the trait `std::fmt::Display` is not implemented for `no_debug::Bar` | |
35 | = note: required by `std::fmt::Display::fmt` | |
36 | ||
37 | error: aborting due to 4 previous errors | |
38 | ||
0531ce1d | 39 | For more information about this error, try `rustc --explain E0277`. |