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

More information for fully-qualified suggestion when there are multiple impls #128527

Merged
merged 1 commit into from
Aug 7, 2024

Commits on Aug 2, 2024

  1. More information for fully-qualified suggestion when there are multip…

    …le impls
    
    ```
    error[E0790]: cannot call associated function on trait without specifying the corresponding `impl` type
      --> $DIR/E0283.rs:30:21
       |
    LL |     fn create() -> u32;
       |     ------------------- `Coroutine::create` defined here
    ...
    LL |     let cont: u32 = Coroutine::create();
       |                     ^^^^^^^^^^^^^^^^^^^ cannot call associated function of trait
       |
    help: use a fully-qualified path to a specific available implementation
       |
    LL |     let cont: u32 = <Impl as Coroutine>::create();
       |                     ++++++++          +
    LL |     let cont: u32 = <AnotherImpl as Coroutine>::create();
       |                     +++++++++++++++          +
    ```
    estebank committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    2c83c99 View commit details
    Browse the repository at this point in the history