Skip to content

Conversation

@emberian
Copy link
Contributor

No description provided.

@bors bors closed this Oct 21, 2013
@bors bors merged commit 1122d6a into rust-lang:master Oct 21, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Jun 30, 2023
[`unnecessary_fold`]: suggest turbofish if necessary

Fixes rust-lang#10000

This adds turbofish `::<T>` to the suggestion in `unnecessary_fold`. This is necessary because the `Sum` trait is generic, which breaks inference when changing `fold()` to `sum()`.

changelog: [`unnecessary_fold`]: suggest turbofish if necessary
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.

2 participants