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

Suggest trait bound on type parameter when it is unconstrained #62772

Merged
merged 1 commit into from
Jul 24, 2019

Commits on Jul 18, 2019

  1. Suggest trait bound on type parameter when it is unconstrained

    Given
    
    ```
    mented on Jan 26, 2015 •
     trait Foo { fn method(&self) {} }
    
    fn call_method<T>(x: &T) {
        x.method()
    }
    ```
    
    suggest constraining `T` with `Foo`.
    estebank committed Jul 18, 2019
    Configuration menu
    Copy the full SHA
    f22bc2d View commit details
    Browse the repository at this point in the history