mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			197 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			197 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // run-pass
 | |
| struct S {
 | |
|     z: f64
 | |
| }
 | |
| 
 | |
| pub fn main() {
 | |
|     let x: f32 = 4.0;
 | |
|     println!("{}", x);
 | |
|     let y: f64 = 64.0;
 | |
|     println!("{}", y);
 | |
|     let z = S { z: 1.0 };
 | |
|     println!("{}", z.z);
 | |
| }
 | 
