19b0e84187
Also no longer lints non-exported types now
46 lines
1.2 KiB
Plaintext
46 lines
1.2 KiB
Plaintext
error: exported type named `Error` that implements `Error`
|
|
--> $DIR/error_impl_error.rs:7:16
|
|
|
|
|
LL | pub struct Error;
|
|
| ^^^^^
|
|
|
|
|
note: `Error` was implemented here
|
|
--> $DIR/error_impl_error.rs:15:5
|
|
|
|
|
LL | impl std::error::Error for Error {}
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
= note: `-D clippy::error-impl-error` implied by `-D warnings`
|
|
|
|
error: exported type named `Error` that implements `Error`
|
|
--> $DIR/error_impl_error.rs:20:21
|
|
|
|
|
LL | pub(super) enum Error {}
|
|
| ^^^^^
|
|
|
|
|
note: `Error` was implemented here
|
|
--> $DIR/error_impl_error.rs:28:5
|
|
|
|
|
LL | impl std::error::Error for Error {}
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: exported type named `Error` that implements `Error`
|
|
--> $DIR/error_impl_error.rs:32:15
|
|
|
|
|
LL | pub union Error {
|
|
| ^^^^^
|
|
|
|
|
note: `Error` was implemented here
|
|
--> $DIR/error_impl_error.rs:49:5
|
|
|
|
|
LL | impl std::error::Error for Error {}
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: exported type alias named `Error` that implements `Error`
|
|
--> $DIR/error_impl_error.rs:53:14
|
|
|
|
|
LL | pub type Error = std::fmt::Error;
|
|
| ^^^^^
|
|
|
|
error: aborting due to 4 previous errors
|
|
|