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

Delete replacement of elided lifetimes in impl heading #239

Merged
merged 2 commits into from
Mar 4, 2023
Merged

Commits on Mar 4, 2023

  1. Add regression test for issue 238

    Currently fails:
    
        error: lifetime parameter `'impl0` only used once
            --> tests/test.rs:1603:20
             |
        1603 |     impl Trait for &Struct {
             |                    ^
             |                    |
             |                    this lifetime...
             |                    ...is used only here
             |
        note: the lint level is defined here
            --> tests/test.rs:1591:13
             |
        1591 |     #![deny(single_use_lifetimes)]
             |             ^^^^^^^^^^^^^^^^^^^^
        help: elide the single-use lifetime
             |
        1602 ~
        1603 ~     impl Trait for Struct {
             |
    dtolnay committed Mar 4, 2023
    Configuration menu
    Copy the full SHA
    f81548d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5883ac8 View commit details
    Browse the repository at this point in the history