2022-08-30 23:46:54 -05:00
|
|
|
error[E0277]: `()` doesn't implement `std::fmt::Display`
|
2023-03-16 14:29:01 -05:00
|
|
|
--> $DIR/doesnt-satisfy.rs:12:17
|
2022-08-30 23:46:54 -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
|
2023-03-16 14:29:01 -05:00
|
|
|
note: required by a bound in `Foo::{opaque#0}`
|
|
|
|
--> $DIR/doesnt-satisfy.rs:8:22
|
2022-08-30 23:46:54 -05:00
|
|
|
|
|
|
|
|
LL | fn bar() -> impl std::fmt::Display;
|
2023-03-27 16:33:04 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^ required by this bound in `Foo::{opaque#0}`
|
2022-08-30 23:46:54 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|