Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add question about inference & method lookup #81

Conversation

ChayimFriedman2
Copy link

This came up on Zulip.

This is a very hard question, and depends on non-specified inner workings of the inference algorithm, so you may not want to add it.

@peterjoel
Copy link
Contributor

This is a great one!

Copy link
Owner

@dtolnay dtolnay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

depends on non-specified inner workings of the inference algorithm, so you may not want to add it.

This is my impression as well. I think whatever is learned from this question is not as useful to know as what is learned from most others, so adding it would dilute the value overall.

Thanks anyway for the PR!

@dtolnay dtolnay closed this Feb 22, 2024
@peterjoel
Copy link
Contributor

I thought the purpose of this quiz was to highlight quirks in the Rust language as well as the minutiae of how things really work. Stuff like this is especially useful to macro authors, who need to take care of exactly these sorts of edge cases.

I don't think it's more esoteric than #8 or #24, and probably a few others too.

@dtolnay
Copy link
Owner

dtolnay commented Feb 22, 2024

I think it is significantly more esoteric than either of those.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants