-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Update E0102's example (fixes #33057) #33058
Conversation
@bors delegate=GuillaumeGomez |
✌️ @GuillaumeGomez can now approve this pull request |
} | ||
``` | ||
|
||
To solve this situation, constrain the type of the variable. | ||
Examples: | ||
|
||
```no_run | ||
```rust |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rust flag isn't needed in this case as far as I know. If no option is passed, the code is compiled and run.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I like to be explicit about this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we keep it, it'll be the only place where such a flag is used. Also, by default, it is rust code. We only precise it when it's not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Except for the nit (not really one but I like to remain consistent with the other error codes examples), it's all good. Thanks! |
Fixes #33057. |
@bors: rollup |
@bors r=GuillaumeGomez rollup @GuillaumeGomez you need to have |
📌 Commit f089cf9 has been approved by |
⌛ Testing commit f089cf9 with merge 7893b46... |
💔 Test failed - auto-mac-64-opt-rustbuild |
@bors: retry On Mon, Apr 18, 2016 at 9:53 AM, bors notifications@github.com wrote:
|
Update E0102's example (fixes rust-lang#33057) r? @GuillaumeGomez
r? @GuillaumeGomez