mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-21 10:33:27 +00:00
46 lines
1.2 KiB
Text
46 lines
1.2 KiB
Text
|
error: type named `Error` that implements `Error`
|
||
|
--> $DIR/error_impl_error.rs:7:12
|
||
|
|
|
||
|
LL | 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: type named `Error` that implements `Error`
|
||
|
--> $DIR/error_impl_error.rs:20:10
|
||
|
|
|
||
|
LL | enum Error {}
|
||
|
| ^^^^^
|
||
|
|
|
||
|
note: `Error` was implemented here
|
||
|
--> $DIR/error_impl_error.rs:28:5
|
||
|
|
|
||
|
LL | impl std::error::Error for Error {}
|
||
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
|
|
||
|
error: type named `Error` that implements `Error`
|
||
|
--> $DIR/error_impl_error.rs:32:11
|
||
|
|
|
||
|
LL | union Error {
|
||
|
| ^^^^^
|
||
|
|
|
||
|
note: `Error` was implemented here
|
||
|
--> $DIR/error_impl_error.rs:49:5
|
||
|
|
|
||
|
LL | impl std::error::Error for Error {}
|
||
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
|
|
||
|
error: type alias named `Error` that implements `Error`
|
||
|
--> $DIR/error_impl_error.rs:53:10
|
||
|
|
|
||
|
LL | type Error = std::fmt::Error;
|
||
|
| ^^^^^
|
||
|
|
||
|
error: aborting due to 4 previous errors
|
||
|
|