Skip to content

Conversation

@niklasf
Copy link
Contributor

@niklasf niklasf commented Dec 16, 2025

warning: hiding a lifetime that's elided elsewhere is confusing
   --> src/arrayvec.rs:640:21
    |
640 |     pub fn drain<R>(&mut self, range: R) -> Drain<T, CAP>
    |                     ^^^^^^^^^               ^^^^^^^^^^^^^ the same lifetime is hidden here
    |                     |
    |                     the lifetime is elided here
    |
    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
    = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
help: use `'_` for type paths
    |
640 |     pub fn drain<R>(&mut self, range: R) -> Drain<'_, T, CAP>
    |                                                   +++

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant