Skip to content

Commit 49cde40

Browse files
add test for spurious intra-doc link warning
1 parent e721f5e commit 49cde40

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pub trait ThisTrait {
2+
fn asdf(&self);
3+
4+
/// let's link to [`asdf`](ThisTrait::asdf)
5+
fn qwop(&self);
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// aux-build:intra-links-external-traits.rs
2+
// ignore-cross-compile
3+
4+
#![crate_name = "outer"]
5+
#![deny(intra_doc_link_resolution_failure)]
6+
7+
// using a trait that has intra-doc links on it from another crate (whether re-exporting or just
8+
// implementing it) used to give spurious resolution failure warnings
9+
10+
extern crate intra_links_external_traits;
11+
12+
pub use intra_links_external_traits::ThisTrait;

0 commit comments

Comments
 (0)