Skip to content

Commit

Permalink
Add test case for Self:: links
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Dec 14, 2020
1 parent cc31b99 commit fa64c27
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/test/rustdoc/intra-link-self-cache.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#![crate_name = "foo"]
// @has foo/enum.E1.html '//a/@href' '../foo/enum.E1.html#variant.A'

/// [Self::A::b]
pub enum E1 {
A { b: usize }
}

// @has foo/enum.E2.html '//a/@href' '../foo/enum.E2.html#variant.A'

/// [Self::A::b]
pub enum E2 {
A { b: usize }
}

0 comments on commit fa64c27

Please sign in to comment.