rust/tests/rustdoc/inline_cross/auxiliary/implementors_inline.rs
2023-01-11 09:32:08 +00:00

19 lines
290 B
Rust

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
}
}