p
error[E0117]: only traits defined in the current crate can be implemented for arbitrary types
--> src\main.rs:45:5
|
45 | impl std::fmt::Display for Result<MyResilt, Error> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^----------------------------
| | |
| |
std::result::Result
is not defined in the current crate| impl doesn't use only types from inside the current crate
|
= note: define and implement a trait or new type instead