Skip to content

Commit

Permalink
Update ui test suite to nightly-2022-07-02
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jul 2, 2022
1 parent d2f761f commit b338fe6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 27 deletions.
12 changes: 3 additions & 9 deletions tests/ui/no-display.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ error[E0599]: the method `as_display` exists for reference `&NoDisplay`, but its
--> tests/ui/no-display.rs:7:9
|
4 | struct NoDisplay;
| ----------------- doesn't satisfy `NoDisplay: std::fmt::Display`
| ---------------- doesn't satisfy `NoDisplay: std::fmt::Display`
...
7 | #[error("thread: {thread}")]
| ^^^^^^^^^^^^^^^^^^ method cannot be called on `&NoDisplay` due to unsatisfied trait bounds
Expand All @@ -13,11 +13,5 @@ error[E0599]: the method `as_display` exists for reference `&NoDisplay`, but its
note: the following trait must be implemented
--> $RUST/core/src/fmt/mod.rs
|
| / pub trait Display {
| | /// Formats the value using the given formatter.
| | ///
| | /// # Examples
... |
| | fn fmt(&self, f: &mut Formatter<'_>) -> Result;
| | }
| |_^
| pub trait Display {
| ^^^^^^^^^^^^^^^^^
12 changes: 3 additions & 9 deletions tests/ui/source-enum-not-error.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ error[E0599]: the method `as_dyn_error` exists for reference `&NotError`, but it
--> 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`
Expand All @@ -18,11 +18,5 @@ error[E0599]: the method `as_dyn_error` exists for reference `&NotError`, but it
note: the following trait must be implemented
--> $RUST/std/src/error.rs
|
| / pub trait Error: Debug + Display {
| | /// The lower-level source of this error, if any.
| | ///
| | /// # Examples
... |
| | }
| | }
| |_^
| pub trait Error: Debug + Display {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12 changes: 3 additions & 9 deletions tests/ui/source-struct-not-error.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ error[E0599]: the method `as_dyn_error` exists for struct `NotError`, but its tr
--> tests/ui/source-struct-not-error.rs:9:5
|
4 | struct NotError;
| ----------------
| ---------------
| | |
| | method `as_dyn_error` not found for this struct
| doesn't satisfy `NotError: AsDynError`
Expand All @@ -17,11 +17,5 @@ error[E0599]: the method `as_dyn_error` exists for struct `NotError`, but its tr
note: the following trait must be implemented
--> $RUST/std/src/error.rs
|
| / pub trait Error: Debug + Display {
| | /// The lower-level source of this error, if any.
| | ///
| | /// # Examples
... |
| | }
| | }
| |_^
| pub trait Error: Debug + Display {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

0 comments on commit b338fe6

Please sign in to comment.