mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	 ca79086c87
			
		
	
	
		ca79086c87
		
			
		
	
	
	
	
		
			
			This was due to the must_use() call. Adding HIR's OffsetOf to the must_use checking within the compiler avoids this issue.
		
			
				
	
	
		
			9 lines
		
	
	
		
			145 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
		
			145 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| //@ check-pass
 | |
| 
 | |
| #![warn(unused)]
 | |
| 
 | |
| fn main() {
 | |
|     core::mem::offset_of!((String,), 0);
 | |
|     //~^ WARN unused `offset_of` call that must be used
 | |
| }
 |