rust/tests/ui/intrinsics/intrinsic-raw_eq-const-padding.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
234 B
Rust
Raw Normal View History

#![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 17:16:37 -05:00
//~^ ERROR evaluation of constant value failed
};
pub fn main() {
}