-
Notifications
You must be signed in to change notification settings - Fork 647
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
TryStream and compiler “limitations” #2508
Comments
IIRC limitation is: #1776 (comment) However, a recent compiler change (probably in 1.52) may have fixed this. |
Okay; even on older versions it still seems to work by means of writing pub trait TryStream: Stream<Item = Result<<Self as TryStream>::Ok, <Self as TryStream>::Error>> {
/// The type of successful values yielded by this future
type Ok;
/// The type of failures yielded by this future
type Error;
} instead of pub trait TryStream: Stream<Item = Result<Self::Ok, Self::Error>> {
/// The type of successful values yielded by this future
type Ok;
/// The type of failures yielded by this future
type Error;
} but perhaps that workaround wasn’t known by the author of the comment. |
Nevermind, even that more explicit version doesn’t work before |
…and I see a MSRV of |
The current MSRV for The MSRV policy for In 0.4, the trait aliases will be moved to |
Reading
futures-rs/futures-core/src/stream.rs
Lines 174 to 182 in 3601bb7
I’m wondering: what’s those limitations?
Trying something like b7f417d seems to work without problems.
The text was updated successfully, but these errors were encountered: