mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 06:56:14 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			274 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			274 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
//@ only-wasm32
 | 
						|
//@ compile-flags: -C opt-level=2
 | 
						|
//@ build-pass
 | 
						|
 | 
						|
// Regression test for #76281.
 | 
						|
// This seems like an issue related to LLVM rather than
 | 
						|
// libs-impl so place here.
 | 
						|
 | 
						|
fn main() {
 | 
						|
    let mut v: Vec<&()> = Vec::new();
 | 
						|
    v.sort_by_key(|&r| r as *const ());
 | 
						|
}
 |