blob: 80f357b61badde5e86076929d15f563ba8b768c2 [file] [log] [blame] [edit]
#![feature(portable_simd)]
use std::simd;
fn main() {
fn f(_: simd::u32x8) {}
// These two vector types have the same size but are still not compatible.
let g = unsafe { std::mem::transmute::<fn(simd::u32x8), fn(simd::u64x4)>(f) };
g(Default::default()) //~ ERROR: calling a function with argument of type std::simd::Simd<u32, 8> passing data of type std::simd::Simd<u64, 4>
}