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