mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 06:56:14 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			197 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			197 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
pub mod num {
 | 
						|
    pub trait Num2 {
 | 
						|
        fn from_int2(n: isize) -> Self;
 | 
						|
    }
 | 
						|
}
 | 
						|
 | 
						|
pub mod f64 {
 | 
						|
    impl ::num::Num2 for f64 {
 | 
						|
        fn from_int2(n: isize) -> f64 { return n as f64;  }
 | 
						|
    }
 | 
						|
}
 |