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

Show span for trait that doesn't implement Copy #37493

Closed

Commits on Dec 28, 2016

  1. Show span for trait that doesn't implement Copy

    Change error message to
    
    ```nocode
    error[E0205]: the trait `Copy` may not be implemented for type `Foo`
      --> $DIR/issue-19950.rs:17:6
       |
    14 |     MyVariant(NoCopy)
       |     ----------------- this variant doesn't implement `Copy`
    ...
    17 | impl Copy for Foo {}
       |      ^^^^ variant `Foo::MyVariant` doesn't implement `Copy`
    
    error[E0204]: the trait `Copy` may not be implemented for type `Bar`
      --> $DIR/issue-19950.rs:23:1
       |
    20 |     item: NoCopy,
       |     ------------ this field doesn't implement `Copy`
    ...
    23 | impl Copy for Bar {}
       | ^^^^^^^^^^^^^^^^^^^^ field `item` in struct `Bar` doesn't implement `Copy`
    ```
    estebank committed Dec 28, 2016
    Configuration menu
    Copy the full SHA
    d9d75b5 View commit details
    Browse the repository at this point in the history