mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 04:57:19 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			206 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			206 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // skip-filecheck
 | |
| // unit-test: DataflowConstProp
 | |
| 
 | |
| // EMIT_MIR self_assign.main.DataflowConstProp.diff
 | |
| fn main() {
 | |
|     let mut a = 0;
 | |
|     a = a + 1;
 | |
|     a = a;
 | |
| 
 | |
|     let mut b = &a;
 | |
|     b = b;
 | |
|     a = *b;
 | |
| }
 | 
