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-02-14 10:10:22 -06:00
|
|
|
--> $DIR/issue-81098.rs:3:37
|
2021-01-26 04:10:54 -06:00
|
|
|
|
|
2022-02-14 10:10:22 -06:00
|
|
|
LL | fn wat() -> impl core::fmt::Display {
|
|
|
|
| _____________________________________^
|
2022-02-16 09:48:46 -06:00
|
|
|
LL | |
|
2022-02-14 10:10:22 -06:00
|
|
|
LL | | fn why() {}
|
|
|
|
LL | | }
|
|
|
|
| |_^ `()` cannot be formatted with the default formatter
|
2021-01-26 04:10:54 -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
|
|
|
|
|
|
|
|
error[E0277]: `()` doesn't implement `std::fmt::Display`
|
2022-02-16 09:48:46 -06:00
|
|
|
--> $DIR/issue-81098.rs:10:12
|
|
|
|
|
|
|
|
|
LL | fn ok() -> impl core::fmt::Display {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ `()` cannot be formatted with the default formatter
|
|
|
|
LL |
|
|
|
|
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
|
|
|
|
|
|
|
|
error[E0277]: `()` doesn't implement `std::fmt::Display`
|
|
|
|
--> $DIR/issue-81098.rs:10:36
|
2021-01-26 04:10:54 -06:00
|
|
|
|
|
2022-02-14 10:10:22 -06:00
|
|
|
LL | fn ok() -> impl core::fmt::Display {
|
|
|
|
| ____________________________________^
|
2022-02-16 09:48:46 -06:00
|
|
|
LL | |
|
2022-02-14 10:10:22 -06:00
|
|
|
LL | | 1;
|
|
|
|
LL | | }
|
|
|
|
| |_^ `()` cannot be formatted with the default formatter
|
2021-01-26 04:10:54 -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-02-16 09:48:46 -06:00
|
|
|
error: aborting due to 4 previous errors
|
2021-01-26 04:10:54 -06:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|