Skip to content

Commit 2b17f02

Browse files
committed
Add test for cross-crate Self
1 parent aa8c9b0 commit 2b17f02

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

Diff for: src/test/rustdoc/intra-doc-crate/auxiliary/self.rs

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#![crate_name = "cross_crate_self"]
2+
pub struct S;
3+
4+
impl S {
5+
/// Link to [Self::f]
6+
pub fn f() {}
7+
}

Diff for: src/test/rustdoc/intra-doc-crate/self.rs

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// aux-build:self.rs
2+
3+
extern crate cross_crate_self;
4+
5+
// @has self/struct.S.html '//a[@href="../self/struct.S.html#method.f"]' "Self::f"
6+
pub use cross_crate_self::S;

0 commit comments

Comments
 (0)