fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

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