2023-06-23 22:00:08 -05:00
|
|
|
error[E0277]: `()` doesn't implement `std::fmt::Display`
|
2023-10-24 10:27:02 -05:00
|
|
|
--> $DIR/doesnt-satisfy.rs:6:17
|
2023-06-23 22:00:08 -05:00
|
|
|
|
|
|
|
|
LL | fn bar() -> () {}
|
|
|
|
| ^^ `()` cannot be formatted with the default formatter
|
|
|
|
|
|
|
|
|
= help: the trait `std::fmt::Display` is not implemented for `()`
|
|
|
|
= note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
|
|
|
|
note: required by a bound in `Foo::{opaque#0}`
|
2023-10-24 10:27:02 -05:00
|
|
|
--> $DIR/doesnt-satisfy.rs:2:22
|
2023-06-23 22:00:08 -05:00
|
|
|
|
|
|
|
|
LL | fn bar() -> impl std::fmt::Display;
|
|
|
|
| ^^^^^^^^^^^^^^^^^ required by this bound in `Foo::{opaque#0}`
|
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2023-06-23 22:00:08 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|