rust/tests/rustdoc-ui/intra-doc/extern-crate-load.rs

27 lines
356 B
Rust

//@ check-pass
//@ aux-crate:dep1=dep1.rs
//@ aux-crate:dep2=dep2.rs
//@ aux-crate:dep3=dep3.rs
//@ aux-crate:dep4=dep4.rs
#![deny(rustdoc::broken_intra_doc_links)]
pub trait Trait {
/// [dep1]
type Item;
}
pub struct S {
/// [dep2]
pub x: usize,
}
extern "C" {
/// [dep3]
pub fn printf();
}
pub enum E {
/// [dep4]
A
}