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