]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/issue-81098.stderr
Add warning when whitespace is not skipped after an escaped newline.
[rust.git] / src / test / ui / suggestions / issue-81098.stderr
1 error[E0277]: `()` doesn't implement `std::fmt::Display`
2   --> $DIR/issue-81098.rs:3:13
3    |
4 LL | 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
10 error[E0277]: `()` doesn't implement `std::fmt::Display`
11   --> $DIR/issue-81098.rs:9:12
12    |
13 LL | fn ok() -> impl core::fmt::Display {
14    |            ^^^^^^^^^^^^^^^^^^^^^^^ `()` cannot be formatted with the default formatter
15 LL |     1;
16    |      - consider removing this semicolon
17    |
18    = help: the trait `std::fmt::Display` is not implemented for `()`
19    = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
20
21 error: aborting due to 2 previous errors
22
23 For more information about this error, try `rustc --explain E0277`.