mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 15:32:06 +00:00
add test for spurious intra-doc link warning
This commit is contained in:
parent
e721f5e083
commit
49cde40412
@ -0,0 +1,6 @@
|
||||
pub trait ThisTrait {
|
||||
fn asdf(&self);
|
||||
|
||||
/// let's link to [`asdf`](ThisTrait::asdf)
|
||||
fn qwop(&self);
|
||||
}
|
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…
Reference in New Issue
Block a user