mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			287 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			287 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| //@ run-pass
 | |
| //@ only-wasm32
 | |
| //@ compile-flags: -Zmir-opt-level=0 -C target-feature=+nontrapping-fptoint
 | |
| 
 | |
| #![feature(test, stmt_expr_attributes)]
 | |
| #![deny(overflowing_literals)]
 | |
| 
 | |
| #[path = "saturating-float-casts-impl.rs"]
 | |
| mod implementation;
 | |
| 
 | |
| pub fn main() {
 | |
|     implementation::run();
 | |
| }
 | 
