-
-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
`rustfmt tests/ui/*.rs`
- Loading branch information
Showing
5 changed files
with
30 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
error: deriving From requires no fields other than source and backtrace | ||
--> tests/ui/from-backtrace-backtrace.rs:8:18 | ||
--> tests/ui/from-backtrace-backtrace.rs:9:5 | ||
| | ||
8 | pub struct Error(#[from] #[backtrace] std::io::Error, Backtrace); | ||
| ^^^^^^^ | ||
9 | #[from] | ||
| ^^^^^^^ |
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,22 +1,22 @@ | ||
error[E0599]: the method `as_dyn_error` exists for reference `&NotError`, but its trait bounds were not satisfied | ||
--> tests/ui/source-enum-not-error.rs:10:9 | ||
| | ||
4 | pub struct NotError; | ||
| ------------------- | ||
| | | ||
| doesn't satisfy `NotError: AsDynError<'_>` | ||
| doesn't satisfy `NotError: std::error::Error` | ||
--> tests/ui/source-enum-not-error.rs:9:14 | ||
| | ||
4 | pub struct NotError; | ||
| ------------------- | ||
| | | ||
| doesn't satisfy `NotError: AsDynError<'_>` | ||
| doesn't satisfy `NotError: std::error::Error` | ||
... | ||
10 | source: NotError, | ||
| ^^^^^^ method cannot be called on `&NotError` due to unsatisfied trait bounds | ||
| | ||
= note: the following trait bounds were not satisfied: | ||
`NotError: std::error::Error` | ||
which is required by `NotError: AsDynError<'_>` | ||
`&NotError: std::error::Error` | ||
which is required by `&NotError: AsDynError<'_>` | ||
9 | Broken { source: NotError }, | ||
| ^^^^^^ method cannot be called on `&NotError` due to unsatisfied trait bounds | ||
| | ||
= note: the following trait bounds were not satisfied: | ||
`NotError: std::error::Error` | ||
which is required by `NotError: AsDynError<'_>` | ||
`&NotError: std::error::Error` | ||
which is required by `&NotError: AsDynError<'_>` | ||
note: the trait `std::error::Error` must be implemented | ||
--> $RUST/core/src/error.rs | ||
| | ||
| pub trait Error: Debug + Display { | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
--> $RUST/core/src/error.rs | ||
| | ||
| pub trait Error: Debug + Display { | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
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