mirror of
https://github.com/dtolnay/thiserror.git
synced 2025-04-06 22:37:38 +03:00
Update ui test suite to nightly-2022-07-02
This commit is contained in:
parent
d2f761f0ea
commit
b338fe6ac1
3 changed files with 9 additions and 27 deletions
|
@ -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;
|
|
||||||
| | }
|
|
||||||
| |_^
|
|
||||||
|
|
|
@ -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
|
|
||||||
... |
|
|
||||||
| | }
|
|
||||||
| | }
|
|
||||||
| |_^
|
|
||||||
|
|
|
@ -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
|
|
||||||
... |
|
|
||||||
| | }
|
|
||||||
| | }
|
|
||||||
| |_^
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue