]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const_arg_promotable.rs
Rollup merge of #64603 - gilescope:unused-lifetime-warning, r=matthewjasper
[rust.git] / src / test / ui / consts / const_arg_promotable.rs
1 // only-x86_64
2
3 #[cfg(target_arch = "x86")]
4 use std::arch::x86::*;
5 #[cfg(target_arch = "x86_64")]
6 use std::arch::x86_64::*;
7
8 unsafe fn pclmul(a: __m128i, b: __m128i) -> __m128i {
9     _mm_clmulepi64_si128(a, b, *&mut 42) //~ ERROR argument 3 is required to be a constant
10 }
11
12 fn main() {}