]> git.lizzy.rs Git - rust.git/blob - src/test/ui/on-unimplemented/no-debug.stderr
Rollup merge of #47922 - zackmdavis:and_the_case_of_the_unused_field_pattern, r=estebank
[rust.git] / src / test / ui / on-unimplemented / no-debug.stderr
1 error[E0277]: `Foo` doesn't implement `std::fmt::Debug`
2   --> $DIR/no-debug.rs:20:27
3    |
4 20 |     println!("{:?} {:?}", Foo, Bar);
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
10 error[E0277]: `no_debug::Bar` doesn't implement `std::fmt::Debug`
11   --> $DIR/no-debug.rs:20:32
12    |
13 20 |     println!("{:?} {:?}", Foo, Bar);
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
19 error[E0277]: `Foo` doesn't implement `std::fmt::Display`
20   --> $DIR/no-debug.rs:21:23
21    |
22 21 |     println!("{} {}", Foo, Bar);
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
28 error[E0277]: `no_debug::Bar` doesn't implement `std::fmt::Display`
29   --> $DIR/no-debug.rs:21:28
30    |
31 21 |     println!("{} {}", Foo, Bar);
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
37 error: aborting due to 4 previous errors
38