]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/suggestions/issue-81098.stderr
New upstream version 1.62.1+dfsg1
[rustc.git] / src / test / ui / suggestions / issue-81098.stderr
index 2a72159e5774bbc3e1fbb2fd6e000b036682567f..4dc47a20282438dc48e4d9ecb3603c4a1aea425d 100644 (file)
@@ -13,7 +13,9 @@ error[E0277]: `()` doesn't implement `std::fmt::Display`
 LL | fn ok() -> impl core::fmt::Display {
    |            ^^^^^^^^^^^^^^^^^^^^^^^ `()` cannot be formatted with the default formatter
 LL |     1;
-   |      - consider removing this semicolon
+   |     -- help: remove this semicolon
+   |     |
+   |     this expression has type `{integer}`, which implements `std::fmt::Display`
    |
    = 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