Closed Arnavion closed 7 years ago
pub type Future<T> = ::futures::Future<Item = T, Error = Error>;
like the Result alias.
Result
Opt-in via toplevel #[error_chain(future)] / #[error_chain(future = "Future")] attribute, of course.
#[error_chain(future)]
#[error_chain(future = "Future")]
Not possible for now.
error[E0404]: expected trait, found type alias `Future` type aliases cannot be used for traits
rust-lang/rust issue 41517 tracks the feature.
like the
Result
alias.Opt-in via toplevel
#[error_chain(future)]
/#[error_chain(future = "Future")]
attribute, of course.