-
Notifications
You must be signed in to change notification settings - Fork 547
Example in instantiating_binders.md does not compile #2397
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
Comments
I was poking at this and made a small modification: using a function item instead of a function pointer:
I now get an even stranger error:
Specifically, the note is very confusing:
But I am adding this comment, as it might help narrow down the issue. (If the example is indeed intended to compile. I saw no indications that it's not.) |
This example isn't supposed to compile 👍 I'll edit the surrounding text to make that a little more clear. thank you for letting me know it's confusing |
Thanks! Could you please link the PR to this one, before I close this one? |
When a PR fixes this issue it'll automatically close the issue so don't worry about closing this |
Uh oh!
There was an error while loading. Please reload this page.
I'm not sure it's supposed to compile, but this example:
Gives me the following diagnostic:
Is the example supposed to compile? I don't grok the type system quite enough to answer this myself, sorry.
Page is here: https://rustc-dev-guide.rust-lang.org/ty_module/instantiating_binders.html
The text was updated successfully, but these errors were encountered: