error[E0308]: mismatched types --> crates/ide/src/doc_links.rs:77:14 | 77 | Some(&mut cb), | ^^^^^^^ one type is more general than the other | = note: expected type `FnOnce<(BrokenLink<'_>,)>` found type `FnOnce<(BrokenLink<'_>,)>`
-Zverbose outputs the internal representation lifetime instead of
'_. This may help debugging.
This is one of rust's errors I wish that would get some more love, always a bit confusing when encountering that one.
I didn't even have to specify a lifetime, just to add a type annotation for the argument.
Option<&'a mut dyn FnMut(BrokenLink<'_>) -> Option<(CowStr<'a>, CowStr<'a>)>> is a bit gnarly