summaryrefslogtreecommitdiffstats
path: root/src/test/ui/intrinsics/intrinsic-raw_eq-const-padding.rs
blob: a93d777d286567dde47b21f064550271ca241296 (plain)
1
2
3
4
5
6
7
8
9
10
#![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() {
}