// normalize-stderr-test "\d+ bits" -> "N bits" use std::mem; use std::marker::PhantomData; trait Foo { type Error; } struct Bar { stream: PhantomData, } fn foo(x: [usize; 2]) -> Bar { unsafe { mem::transmute(x) } //~^ ERROR transmute called with types of different sizes } fn main() {}