2023-07-31 21:53:53 +00:00
|
|
|
error: exported type named `Error` that implements `Error`
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/error_impl_error.rs:7:16
|
2023-07-31 21:53:53 +00:00
|
|
|
|
|
|
|
|
LL | pub struct Error;
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
note: `Error` was implemented here
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/error_impl_error.rs:16:5
|
2023-07-31 21:53:53 +00:00
|
|
|
|
|
|
|
|
LL | impl std::error::Error for Error {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
= note: `-D clippy::error-impl-error` implied by `-D warnings`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::error_impl_error)]`
|
2023-07-31 21:53:53 +00:00
|
|
|
|
|
|
|
error: exported type named `Error` that implements `Error`
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/error_impl_error.rs:21:21
|
2023-07-31 21:53:53 +00:00
|
|
|
|
|
|
|
|
LL | pub(super) enum Error {}
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
note: `Error` was implemented here
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/error_impl_error.rs:30:5
|
2023-07-31 21:53:53 +00:00
|
|
|
|
|
|
|
|
LL | impl std::error::Error for Error {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: exported type named `Error` that implements `Error`
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/error_impl_error.rs:34:15
|
2023-07-31 21:53:53 +00:00
|
|
|
|
|
|
|
|
LL | pub union Error {
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
note: `Error` was implemented here
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/error_impl_error.rs:52:5
|
2023-07-31 21:53:53 +00:00
|
|
|
|
|
|
|
|
LL | impl std::error::Error for Error {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: exported type alias named `Error` that implements `Error`
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/error_impl_error.rs:56:14
|
2023-07-31 21:53:53 +00:00
|
|
|
|
|
|
|
|
LL | pub type Error = std::fmt::Error;
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|