mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-30 20:44:34 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			202 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			202 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // edition: 2021
 | |
| 
 | |
| pub async fn load() -> i32 {
 | |
|     0
 | |
| }
 | |
| 
 | |
| pub trait Load {
 | |
|     async fn run(&self) -> i32;
 | |
| }
 | |
| 
 | |
| pub struct Loader;
 | |
| 
 | |
| impl Load for Loader {
 | |
|     async fn run(&self) -> i32 {
 | |
|         1
 | |
|     }
 | |
| }
 | 
