@@ -2,16 +2,17 @@ error[E0277]: `Foo` doesn't implement `std::fmt::Debug`
2
2
--> $DIR/no-debug.rs:20:27
3
3
|
4
4
LL | println!("{:?} {:?}", Foo, Bar);
5
- | ^^^ `Foo` cannot be formatted using `:?`; add `#[derive(Debug)]` or manually implement `std::fmt::Debug `
5
+ | ^^^ `Foo` cannot be formatted using `{:?} `
6
6
|
7
7
= help: the trait `std::fmt::Debug` is not implemented for `Foo`
8
+ = note: add `#[derive(Debug)]` or manually implement `std::fmt::Debug`
8
9
= note: required by `std::fmt::Debug::fmt`
9
10
10
11
error[E0277]: `no_debug::Bar` doesn't implement `std::fmt::Debug`
11
12
--> $DIR/no-debug.rs:20:32
12
13
|
13
14
LL | println!("{:?} {:?}", Foo, Bar);
14
- | ^^^ `no_debug::Bar` cannot be formatted using `:? ` because it doesn't implement `std::fmt::Debug`
15
+ | ^^^ `no_debug::Bar` cannot be formatted using `{:?} ` because it doesn't implement `std::fmt::Debug`
15
16
|
16
17
= help: the trait `std::fmt::Debug` is not implemented for `no_debug::Bar`
17
18
= note: required by `std::fmt::Debug::fmt`
@@ -20,18 +21,20 @@ error[E0277]: `Foo` doesn't implement `std::fmt::Display`
20
21
--> $DIR/no-debug.rs:21:23
21
22
|
22
23
LL | println!("{} {}", Foo, Bar);
23
- | ^^^ `Foo` cannot be formatted with the default formatter; try using `:?` instead if you are using a format string
24
+ | ^^^ `Foo` cannot be formatted with the default formatter
24
25
|
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
26
28
= note: required by `std::fmt::Display::fmt`
27
29
28
30
error[E0277]: `no_debug::Bar` doesn't implement `std::fmt::Display`
29
31
--> $DIR/no-debug.rs:21:28
30
32
|
31
33
LL | 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
+ | ^^^ `no_debug::Bar` cannot be formatted with the default formatter
33
35
|
34
36
= help: the trait `std::fmt::Display` is not implemented for `no_debug::Bar`
37
+ = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
35
38
= note: required by `std::fmt::Display::fmt`
36
39
37
40
error: aborting due to 4 previous errors
0 commit comments