作者:甄Ven-Li | 来源:互联网 | 2023-07-25 11:00
This is for methods which use named lifetimes which are defined elsewhere (not in
1
| fn foo<&#039;a, &#039;b>(.. |
), e.g. https://github.com/Manishearth/rust-clippy/blob/master/src/loops.rs#L106
I think when we encounter such lifetimes we can only bail, because the lifetime may or may not be connected with the self type and elision can't do much anyway.
cc
该提问来源于开源项目:rust-lang/rust-clippy
We also should bail if any of the named lifetimes are bounded