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
It seems that std::sync::mpsc::RecvTimeoutError is missing impls for std::fmt::Display and std::error::Error. Related error types such as std::sync::mpsc::TryRecvErrorimplement both.
I expected to see this happen: compilation succeeds
Instead, this happened:
rustc 1.14.0-nightly (3f4408347 2016-10-27)
error[E0277]: the trait bound `std::sync::mpsc::RecvTimeoutError: std::error::Error` is not satisfied
--> <anon>:6:13
|
6 | let _ = r.recv_timeout(Duration::from_secs(3))?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::error::Error` is not implemented for `std::sync::mpsc::RecvTimeoutError`
|
= note: required because of the requirements on the impl of `std::convert::From<std::sync::mpsc::RecvTimeoutError>` for `Box<std::error::Error>`
= note: required by `std::convert::From::from`
error: aborting due to previous error
It seems that
std::sync::mpsc::RecvTimeoutError
is missing impls forstd::fmt::Display
andstd::error::Error
. Related error types such asstd::sync::mpsc::TryRecvError
implement both.I tried this code:
I expected to see this happen: compilation succeeds
Instead, this happened:
Meta
rustc --version --verbose
:Backtrace: N/A
The text was updated successfully, but these errors were encountered: