]> git.lizzy.rs Git - rust.git/blob - src/test/ui/on-unimplemented/no-debug.stderr
Rollup merge of #76275 - FedericoPonzi:immutable-write-impl-73836, r=dtolnay
[rust.git] / src / test / ui / on-unimplemented / no-debug.stderr
1 error[E0277]: `Foo` doesn't implement `Debug`
2   --> $DIR/no-debug.rs:10:27
3    |
4 LL |     println!("{:?} {:?}", Foo, Bar);
5    |                           ^^^ `Foo` cannot be formatted using `{:?}`
6    |
7    = help: the trait `Debug` is not implemented for `Foo`
8    = note: add `#[derive(Debug)]` or manually implement `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
12 error[E0277]: `Bar` doesn't implement `Debug`
13   --> $DIR/no-debug.rs:10:32
14    |
15 LL |     println!("{:?} {:?}", Foo, Bar);
16    |                                ^^^ `Bar` cannot be formatted using `{:?}` because it doesn't implement `Debug`
17    |
18    = help: the trait `Debug` is not implemented for `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
22 error[E0277]: `Foo` doesn't implement `std::fmt::Display`
23   --> $DIR/no-debug.rs:11:23
24    |
25 LL |     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
33 error[E0277]: `Bar` doesn't implement `std::fmt::Display`
34   --> $DIR/no-debug.rs:11:28
35    |
36 LL |     println!("{} {}", Foo, Bar);
37    |                            ^^^ `Bar` cannot be formatted with the default formatter
38    |
39    = help: the trait `std::fmt::Display` is not implemented for `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
44 error: aborting due to 4 previous errors
45
46 For more information about this error, try `rustc --explain E0277`.