Add lint for unused lifetimes

Warns for unused lifetimes in functions,
structs, traits and impls.