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

On implicit Sized bound on fn argument, point at type instead of pattern #130912

Merged
merged 1 commit into from
Sep 27, 2024

Commits on Sep 27, 2024

  1. On implicit Sized bound on fn argument, point at type instead of pa…

    …ttern
    
    Instead of
    
    ```
    error[E0277]: the size for values of type `(dyn ThriftService<(), AssocType = _> + 'static)` cannot be known at compilation time
      --> $DIR/issue-59324.rs:23:20
       |
    LL | fn with_factory<H>(factory: dyn ThriftService<()>) {}
       |                    ^^^^^^^ doesn't have a size known at compile-time
    ```
    
    output
    
    ```
    error[E0277]: the size for values of type `(dyn ThriftService<(), AssocType = _> + 'static)` cannot be known at compilation time
      --> $DIR/issue-59324.rs:23:29
       |
    LL | fn with_factory<H>(factory: dyn ThriftService<()>) {}
       |                             ^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
    ```
    estebank committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    c7d171d View commit details
    Browse the repository at this point in the history