]> git.proxmox.com Git - rustc.git/blame - src/test/ui/on-unimplemented/no-debug.stderr
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / on-unimplemented / no-debug.stderr
CommitLineData
1b1a35ee 1error[E0277]: `Foo` doesn't implement `Debug`
0731742a 2 --> $DIR/no-debug.rs:10:27
2c00a5a8 3 |
0531ce1d 4LL | println!("{:?} {:?}", Foo, Bar);
83c7162d 5 | ^^^ `Foo` cannot be formatted using `{:?}`
2c00a5a8 6 |
1b1a35ee 7 = help: the trait `Debug` is not implemented for `Foo`
136023e0 8 = note: add `#[derive(Debug)]` to `Foo` or manually `impl Debug for Foo`
17df50a5 9 = note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info)
2c00a5a8 10
1b1a35ee 11error[E0277]: `Bar` doesn't implement `Debug`
0731742a 12 --> $DIR/no-debug.rs:10:32
2c00a5a8 13 |
0531ce1d 14LL | println!("{:?} {:?}", Foo, Bar);
1b1a35ee 15 | ^^^ `Bar` cannot be formatted using `{:?}` because it doesn't implement `Debug`
2c00a5a8 16 |
1b1a35ee 17 = help: the trait `Debug` is not implemented for `Bar`
17df50a5 18 = note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info)
2c00a5a8
XL
19
20error[E0277]: `Foo` doesn't implement `std::fmt::Display`
0731742a 21 --> $DIR/no-debug.rs:11:23
2c00a5a8 22 |
0531ce1d 23LL | println!("{} {}", Foo, Bar);
83c7162d 24 | ^^^ `Foo` cannot be formatted with the default formatter
2c00a5a8
XL
25 |
26 = help: the trait `std::fmt::Display` is not implemented for `Foo`
83c7162d 27 = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
17df50a5 28 = note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info)
2c00a5a8 29
1b1a35ee 30error[E0277]: `Bar` doesn't implement `std::fmt::Display`
0731742a 31 --> $DIR/no-debug.rs:11:28
2c00a5a8 32 |
0531ce1d 33LL | println!("{} {}", Foo, Bar);
1b1a35ee 34 | ^^^ `Bar` cannot be formatted with the default formatter
2c00a5a8 35 |
1b1a35ee 36 = help: the trait `std::fmt::Display` is not implemented for `Bar`
83c7162d 37 = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
17df50a5 38 = note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info)
2c00a5a8
XL
39
40error: aborting due to 4 previous errors
41
0531ce1d 42For more information about this error, try `rustc --explain E0277`.