It seems that if you define a link in an item's doc comment, it is evidently only defined for that particular item. As an example:
/// This is some example [documentation]
///
/// [documentation]: https://www.rust-lang.org/learn
If I try to use [documentation]
in the doc comments for another item, it says that the link is unresolved. Is there an easy way to define links globally, or at least within the same file such that they can be used in the doc comments for multiple items? This seems like something that should be common and easy, but I could find no information about it, and this was no help either. Having to redefine the links in every item's doc comments would be a lot of unwanted duplication.