mirror of
https://github.com/dtolnay/thiserror.git
synced 2025-04-05 05:47:39 +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_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`
|
||||
|
@ -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 {
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue