diff options
Diffstat (limited to 'tests/ui/intrinsics/intrinsic-raw_eq-const-padding.rs')
-rw-r--r-- | tests/ui/intrinsics/intrinsic-raw_eq-const-padding.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/intrinsics/intrinsic-raw_eq-const-padding.rs b/tests/ui/intrinsics/intrinsic-raw_eq-const-padding.rs new file mode 100644 index 000000000..a93d777d2 --- /dev/null +++ b/tests/ui/intrinsics/intrinsic-raw_eq-const-padding.rs @@ -0,0 +1,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() { +} |