Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rust-lang/rust
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: adf5464
Choose a base ref
...
head repository: rust-lang/rust
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: c69c12e
Choose a head ref
  • 1 commit
  • 5 files changed
  • 1 contributor

Commits on Feb 28, 2025

  1. Provide more context on resolve error caused from incorrect RTN

    When encountering a resolve E0575 error for an associated method (when a type was expected), see if it could have been an intended return type notation bound.
    
    ```
    error[E0575]: expected associated type, found associated function `Trait::method`
      --> $DIR/bad-inputs-and-output.rs:31:36
       |
    LL | fn foo_qualified<T: Trait>() where <T as Trait>::method(i32): Send {}
       |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^ not a associated type
       |
    help: you might have meant to use the return type notation syntax
       |
    LL - fn foo_qualified<T: Trait>() where <T as Trait>::method(i32): Send {}
    LL + fn foo_qualified<T: Trait>() where T::method(..): Send {}
       |
    ```
    estebank committed Feb 28, 2025
    Configuration menu
    Copy the full SHA
    c69c12e View commit details
    Browse the repository at this point in the history
Loading