-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Rust Book: Generics: Resolving ambiguities #39748
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
Hey @Rufflewind , thanks for this! I am not going to have time to review this PR until Monday; sorry about that! I also wanted to make you aware of #39633; if it lands, your PR may have to be rebased, but luckily, the only changes are moving the files into a Maybe someone else will be able to review in the meantime, but if not, you'll hear from me in a few days 😄 |
Alright, thanks for the heads up! |
☔ The latest upstream changes (presumably #39633) made this pull request unmergeable. Please resolve the merge conflicts. |
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.
Hey there! I'm so sorry that this took me a lot longer than expected. I have one issue here about the tests failing, but other than that, this looks good to go, thank you!
src/doc/book/src/generics.md
Outdated
Sometimes though, the compiler needs a little help. For example, had we | ||
omitted the last line, we would get a compile error: | ||
|
||
```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.
https://travis-ci.org/rust-lang/rust/jobs/201806410#L2417
this line needs an ,ignore
after the rust
.
- Add a small section to generics.md to explain how ambiguities in type inference can be resolved using the ::<> syntax. - Add links from syntax-index.md and iterators.md. - Minor edits to iterators.md and structs.md.
Updated. |
@bors: r+ rollup thanks! Sorry again about the delay. |
📌 Commit cc00059 has been approved by |
Rust Book: Generics: Resolving ambiguities - Add a small section to generics.md to explain how ambiguities in type inference can be resolved using the `::<>` syntax. - Add links from syntax-index.md and iterators.md. - Minor edits to iterators.md and structs.md.
☀️ Test successful - status-appveyor, status-travis |
::<>
syntax.