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

Provide more suggestions on invalid equality where bounds #120751

Merged
merged 2 commits into from
Feb 13, 2024

Commits on Feb 7, 2024

  1. Provide more suggestions on invalid equality where bounds

    ```
    error: equality constraints are not yet supported in `where` clauses
      --> $DIR/equality-bound.rs:50:9
       |
    LL |         IntoIterator::Item = A,
       |         ^^^^^^^^^^^^^^^^^^^^^^ not supported
       |
       = note: see issue rust-lang#20041 <rust-lang#20041> for more information
    help: if `IntoIterator::Item` is an associated type you're trying to set, use the associated type binding syntax
       |
    LL ~     fn from_iter<T: IntoIterator<Item = A>>(_: T) -> Self
    LL |     where
    LL ~
       |
    
    error: equality constraints are not yet supported in `where` clauses
      --> $DIR/equality-bound.rs:63:9
       |
    LL |         T::Item = A,
       |         ^^^^^^^^^^^ not supported
       |
       = note: see issue rust-lang#20041 <rust-lang#20041> for more information
    help: if `IntoIterator::Item` is an associated type you're trying to set, use the associated type binding syntax
       |
    LL ~     fn from_iter<T: IntoIterator<Item = A>>(_: T) -> Self
    LL |     where
    LL ~
       |
    ```
    
    Fix rust-lang#68982.
    estebank committed Feb 7, 2024
    Configuration menu
    Copy the full SHA
    0c1b273 View commit details
    Browse the repository at this point in the history

Commits on Feb 8, 2024

  1. Configuration menu
    Copy the full SHA
    535c643 View commit details
    Browse the repository at this point in the history