Skip to content

Commit

Permalink
Add test for cross-crate Self
Browse files Browse the repository at this point in the history
  • Loading branch information
jyn514 committed Nov 29, 2020
1 parent aa8c9b0 commit 2b17f02
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/test/rustdoc/intra-doc-crate/auxiliary/self.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#![crate_name = "cross_crate_self"]
pub struct S;

impl S {
/// Link to [Self::f]
pub fn f() {}
}
6 changes: 6 additions & 0 deletions src/test/rustdoc/intra-doc-crate/self.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// aux-build:self.rs

extern crate cross_crate_self;

// @has self/struct.S.html '//a[@href="../self/struct.S.html#method.f"]' "Self::f"
pub use cross_crate_self::S;

0 comments on commit 2b17f02

Please sign in to comment.