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