2022-02-16 15:48:46 +00:00
|
|
|
error[E0277]: `()` doesn't implement `std::fmt::Display`
|
|
|
|
--> $DIR/issue-81098.rs:3:13
|
|
|
|
|
|
|
|
|
LL | fn wat() -> impl core::fmt::Display {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ `()` 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
|
|
|
|
|
2021-01-26 10:10:54 +00:00
|
|
|
error[E0277]: `()` doesn't implement `std::fmt::Display`
|
2022-04-28 13:25:36 +00:00
|
|
|
--> $DIR/issue-81098.rs:9:12
|
2022-02-16 15:48:46 +00:00
|
|
|
|
|
|
|
|
LL | fn ok() -> impl core::fmt::Display {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ `()` cannot be formatted with the default formatter
|
|
|
|
LL | 1;
|
2022-04-07 08:21:35 +00:00
|
|
|
| -- help: remove this semicolon
|
|
|
|
| |
|
|
|
|
| this expression has type `{integer}`, which implements `std::fmt::Display`
|
2022-02-16 15:48:46 +00:00
|
|
|
|
|
|
|
|
= 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
|
|
|
|
|
2022-04-28 13:25:36 +00:00
|
|
|
error: aborting due to 2 previous errors
|
2021-01-26 10:10:54 +00:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|