]> git.lizzy.rs Git - rust.git/blob - src/test/ui/on-unimplemented/no-debug.stderr
Rollup merge of #98640 - cuviper:stable-rust-analyzer, r=Mark-Simulacrum
[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)]` to `Foo` or manually `impl Debug for Foo`
9    = note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info)
10 help: consider annotating `Foo` with `#[derive(Debug)]`
11    |
12 LL | #[derive(Debug)]
13    |
14
15 error[E0277]: `Bar` doesn't implement `Debug`
16   --> $DIR/no-debug.rs:10:32
17    |
18 LL |     println!("{:?} {:?}", Foo, Bar);
19    |                                ^^^ `Bar` cannot be formatted using `{:?}` because it doesn't implement `Debug`
20    |
21    = help: the trait `Debug` is not implemented for `Bar`
22    = note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info)
23
24 error[E0277]: `Foo` doesn't implement `std::fmt::Display`
25   --> $DIR/no-debug.rs:11:23
26    |
27 LL |     println!("{} {}", Foo, Bar);
28    |                       ^^^ `Foo` cannot be formatted with the default formatter
29    |
30    = help: the trait `std::fmt::Display` is not implemented for `Foo`
31    = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
32    = note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info)
33
34 error[E0277]: `Bar` doesn't implement `std::fmt::Display`
35   --> $DIR/no-debug.rs:11:28
36    |
37 LL |     println!("{} {}", Foo, Bar);
38    |                            ^^^ `Bar` cannot be formatted with the default formatter
39    |
40    = help: the trait `std::fmt::Display` is not implemented for `Bar`
41    = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
42    = note: this error originates in the macro `$crate::format_args_nl` (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`.