add test for spurious intra-doc link warning

This commit is contained in:
QuietMisdreavus 2019-03-06 10:57:38 -06:00
parent e721f5e083
commit 49cde40412
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,6 @@
pub trait ThisTrait {
fn asdf(&self);
/// let's link to [`asdf`](ThisTrait::asdf)
fn qwop(&self);
}

View File

@ -0,0 +1,12 @@
// aux-build:intra-links-external-traits.rs
// ignore-cross-compile
#![crate_name = "outer"]
#![deny(intra_doc_link_resolution_failure)]
// using a trait that has intra-doc links on it from another crate (whether re-exporting or just
// implementing it) used to give spurious resolution failure warnings
extern crate intra_links_external_traits;
pub use intra_links_external_traits::ThisTrait;