We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
The following should work:
trait Future<T> { fn take(self) -> T; } trait Stream<T>: Future<Option<(T, Box<Stream<T>>)>> { } pub fn main() { println!("zomg"); }