-
-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #76 from dtolnay/span
Improve span of missing Display impl error
- Loading branch information
Showing
3 changed files
with
33 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
error[E0277]: `MyError` doesn't implement `std::fmt::Display` | ||
--> $DIR/missing-display.rs:3:10 | ||
--> $DIR/missing-display.rs:4:1 | ||
| | ||
3 | #[derive(Error, Debug)] | ||
| ^^^^^ `MyError` cannot be formatted with the default formatter | ||
4 | pub enum MyError { | ||
| ^^^^^^^^^^^^^^^^ `MyError` cannot be formatted with the default formatter | ||
| | ||
= help: the trait `std::fmt::Display` is not implemented for `MyError` | ||
= note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead | ||
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) |