Checks for lifetime annotations which can be removed by relying on lifetime elision. Corresponds to
needless_lifetimes
lint from Rust Clippy.