mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
15 lines
398 B
Rust
15 lines
398 B
Rust
// aux-build:traits.rs
|
|
// build-aux-docs
|
|
#![deny(rustdoc::broken_intra_doc_links)]
|
|
|
|
extern crate inner;
|
|
use inner::SomeTrait;
|
|
|
|
pub struct SomeStruct;
|
|
|
|
// @has 'traits/struct.SomeStruct.html' '//a[@href="../inner/trait.SomeTrait.html"]' 'SomeTrait'
|
|
impl SomeTrait for SomeStruct {
|
|
// @has 'traits/struct.SomeStruct.html' '//a[@href="../inner/trait.SomeTrait.html"]' 'a trait'
|
|
fn foo() {}
|
|
}
|