Skip to content
Discussion options

You must be logged in to vote

Thats because first is not a valid method in this context. The required trait bounds for this method are not fulfilled. Use get_result instead.
The error message is really unfortunate. It would be great if you could fill a issue in the rustc repo for a bad diagnostic in this case. I believe the compiler should be able to point out the missing trait implementation instead emitting this overflow error.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ColinTimBarndt
Comment options

@weiznich
Comment options

@ColinTimBarndt
Comment options

Answer selected by ColinTimBarndt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants