Re:Zero-cost futures in Rust
by pcwalton on Thursday August 11, 2016 @12:04PM
(#12269352)
I think "impl Trait" is unstable.
[ Parent
| on HN ]
Not even in nightly yet - follow https://github.com/rust-lang/rust/pull/35091 for updates (we're trying to land it this week).
Re:Zero-cost futures in Rust
by steveklabnik on Thursday August 11, 2016 @12:08PM
(#12269389)
It is, however, it's not currently actually using that syntax in the code: http://alexcrichton.com/futures-rs/futures/trait.Future.html
So, this will work on stable. It was presented that way to not get into the whole details about the whole impl trait shenanigans in general.