add test for spurious intra-doc link warning
This commit is contained in:
parent
e721f5e083
commit
49cde40412
2 changed files with 18 additions and 0 deletions
12
src/test/rustdoc/intra-links-external-traits.rs
Normal file
12
src/test/rustdoc/intra-links-external-traits.rs
Normal 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;
|
Loading…
Add table
Add a link
Reference in a new issue