Update ui test suite to nightly-2022-07-02

This commit is contained in:
David Tolnay 2022-07-01 19:30:59 -07:00
parent d2f761f0ea
commit b338fe6ac1
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82
3 changed files with 9 additions and 27 deletions

View file

@ -2,7 +2,7 @@ error[E0599]: the method `as_display` exists for reference `&NoDisplay`, but its
--> tests/ui/no-display.rs:7:9 --> tests/ui/no-display.rs:7:9
| |
4 | struct NoDisplay; 4 | struct NoDisplay;
| ----------------- doesn't satisfy `NoDisplay: std::fmt::Display` | ---------------- doesn't satisfy `NoDisplay: std::fmt::Display`
... ...
7 | #[error("thread: {thread}")] 7 | #[error("thread: {thread}")]
| ^^^^^^^^^^^^^^^^^^ method cannot be called on `&NoDisplay` due to unsatisfied trait bounds | ^^^^^^^^^^^^^^^^^^ method cannot be called on `&NoDisplay` due to unsatisfied trait bounds
@ -13,11 +13,5 @@ error[E0599]: the method `as_display` exists for reference `&NoDisplay`, but its
note: the following trait must be implemented note: the following trait must be implemented
--> $RUST/core/src/fmt/mod.rs --> $RUST/core/src/fmt/mod.rs
| |
| / pub trait Display { | pub trait Display {
| | /// Formats the value using the given formatter. | ^^^^^^^^^^^^^^^^^
| | ///
| | /// # Examples
... |
| | fn fmt(&self, f: &mut Formatter<'_>) -> Result;
| | }
| |_^

View file

@ -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 --> tests/ui/source-enum-not-error.rs:10:9
| |
4 | pub struct NotError; 4 | pub struct NotError;
| -------------------- | -------------------
| | | |
| doesn't satisfy `NotError: AsDynError` | doesn't satisfy `NotError: AsDynError`
| doesn't satisfy `NotError: std::error::Error` | doesn't satisfy `NotError: std::error::Error`
@ -18,11 +18,5 @@ error[E0599]: the method `as_dyn_error` exists for reference `&NotError`, but it
note: the following trait must be implemented note: the following trait must be implemented
--> $RUST/std/src/error.rs --> $RUST/std/src/error.rs
| |
| / pub trait Error: Debug + Display { | pub trait Error: Debug + Display {
| | /// The lower-level source of this error, if any. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| | ///
| | /// # Examples
... |
| | }
| | }
| |_^

View file

@ -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 --> tests/ui/source-struct-not-error.rs:9:5
| |
4 | struct NotError; 4 | struct NotError;
| ---------------- | ---------------
| | | | | |
| | method `as_dyn_error` not found for this struct | | method `as_dyn_error` not found for this struct
| doesn't satisfy `NotError: AsDynError` | doesn't satisfy `NotError: AsDynError`
@ -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 note: the following trait must be implemented
--> $RUST/std/src/error.rs --> $RUST/std/src/error.rs
| |
| / pub trait Error: Debug + Display { | pub trait Error: Debug + Display {
| | /// The lower-level source of this error, if any. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| | ///
| | /// # Examples
... |
| | }
| | }
| |_^