Originally mentioned in https://github.com/rust-lang/rust/pull/74430#issuecomment-664693080. The following will work, but it seems like it shouldn't: ```rust pub enum S {} /// Link to [struct@S] pub fn f() {} ``` Rustdoc should instead treat it as a resolution failure. This could be implemented using the `disambiguator` introduced in https://github.com/rust-lang/rust/pull/74078.