mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 06:56:14 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			445 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			445 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
error: expected `{`, found `std`
 | 
						|
  --> $DIR/unsafe-block-without-braces.rs:3:9
 | 
						|
   |
 | 
						|
LL |     unsafe //{
 | 
						|
   |     ------ while parsing this `unsafe` expression
 | 
						|
LL |         std::mem::transmute::<f32, u32>(1.0);
 | 
						|
   |         ^^^ expected `{`
 | 
						|
   |
 | 
						|
help: try placing this code inside a block
 | 
						|
   |
 | 
						|
LL |         { std::mem::transmute::<f32, u32>(1.0); }
 | 
						|
   |         +                                       +
 | 
						|
 | 
						|
error: aborting due to 1 previous error
 | 
						|
 |