mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-03 22:49:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			11 lines
		
	
	
		
			234 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			234 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
#![feature(core_intrinsics)]
 | 
						|
#![feature(const_intrinsic_raw_eq)]
 | 
						|
 | 
						|
const BAD_RAW_EQ_CALL: bool = unsafe {
 | 
						|
    std::intrinsics::raw_eq(&(1_u8, 2_u16), &(1_u8, 2_u16))
 | 
						|
//~^ ERROR evaluation of constant value failed
 | 
						|
};
 | 
						|
 | 
						|
pub fn main() {
 | 
						|
}
 |