You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 16, 2021. It is now read-only.
error[E0277]: the trait bound `failure::Fail + 'static: std::marker::Sized` is not satisfied
--> src/main.rs:10:1
|
10 | / fn main() -> Result<()>{11 | | Err(IoError::from(IoErrorKind::InvalidData))?
12 | | }
| |_^ `failure::Fail + 'static` does not have a constant size known at compile-time
|
= help: the trait `std::marker::Sized` is not implemented for `failure::Fail + 'static`
= note: required by `std::result::Result`
error: aborting due to previous error
Switching the Result declaration to type Result<T> = std::result::Result<T, FailureError> yields:
error[E0277]: the trait bound `failure::Error: std::error::Error` is not satisfied
--> src/main.rs:15:25
|
10 | fn main() -> Result<()> {
| _________________________^
11 | | Err(IoError::from(IoErrorKind::InvalidData))?
12 | | }
| |_^ the trait `std::error::Error` is not implementedfor `failure::Error`
|
= note: required because of the requirements on the impl of `std::Termination` for `std::result::Result<(), failure::Error>`
error: aborting due to previous error
Is there a solution for this? If not, should this be a failure or a termination_trait issue?