2021-05-30 10:25:41 -07:00
|
|
|
#![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))
|
2021-07-08 15:16:37 -07:00
|
|
|
//~^ ERROR evaluation of constant value failed
|
2021-05-30 10:25:41 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
pub fn main() {
|
|
|
|
}
|