mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-30 20:44:34 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			290 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			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
 | |
|     }
 | |
| }
 | 
