Skip to content

struct@ will resolve anything in the type namespace including things like mods and traits #74851

Closed
@jyn514

Description

@jyn514

Originally mentioned in #74430 (comment).

The following will work, but it seems like it shouldn't:

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 #74078.

Metadata

Metadata

Assignees

Labels

A-intra-doc-linksArea: Intra-doc links, the ability to link to items in docs by nameT-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions