]> git.proxmox.com Git - rustc.git/blame - src/test/ui/suggestions/issue-81098.stderr
New upstream version 1.62.1+dfsg1
[rustc.git] / src / test / ui / suggestions / issue-81098.stderr
CommitLineData
5869c6ff
XL
1error[E0277]: `()` doesn't implement `std::fmt::Display`
2 --> $DIR/issue-81098.rs:3:13
3 |
4LL | fn wat() -> impl core::fmt::Display {
5 | ^^^^^^^^^^^^^^^^^^^^^^^ `()` cannot be formatted with the default formatter
6 |
7 = help: the trait `std::fmt::Display` is not implemented for `()`
8 = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
9
10error[E0277]: `()` doesn't implement `std::fmt::Display`
11 --> $DIR/issue-81098.rs:9:12
12 |
13LL | fn ok() -> impl core::fmt::Display {
14 | ^^^^^^^^^^^^^^^^^^^^^^^ `()` cannot be formatted with the default formatter
15LL | 1;
04454e1e
FG
16 | -- help: remove this semicolon
17 | |
18 | this expression has type `{integer}`, which implements `std::fmt::Display`
5869c6ff
XL
19 |
20 = help: the trait `std::fmt::Display` is not implemented for `()`
21 = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
22
23error: aborting due to 2 previous errors
24
25For more information about this error, try `rustc --explain E0277`.