rust/tests/rustdoc/inline_cross/auxiliary/implementors_inline.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
290 B
Rust
Raw Normal View History

pub mod my_trait {
pub trait MyTrait {
fn my_fn(&self) -> Self;
}
}
pub mod prelude {
#[doc(inline)]
pub use crate::my_trait::MyTrait;
}
pub struct SomeStruct;
impl my_trait::MyTrait for SomeStruct {
fn my_fn(&self) -> SomeStruct {
SomeStruct
}
}